forked from longhorn/longhorn
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deploy, scripts: provide list of images and script to pull and push a…
…ll Longhorn component images to user provided registry This help to remove the extra dependency on different container image registry. Docker Hub now holds all Longhorn components' images. Also, users can easily pull all the necessary images to their air-gap environment Longhorn longhorn#1419 Signed-off-by: Phan Le <phan.le@rancher.com>
- v1.4.0
- v1.4.0-rc3
- v1.4.0-rc2
- v1.4.0-rc1
- v1.3.2
- v1.3.2-rc2
- v1.3.2-rc1
- v1.3.1
- v1.3.1-rc2
- v1.3.1-rc1
- v1.3.0
- v1.3.0-rc3
- v1.3.0-rc2
- v1.3.0-rc1
- v1.3.0-preview1
- v1.2.6
- v1.2.6-rc1
- v1.2.5
- v1.2.5-rc2
- v1.2.5-rc1
- v1.2.4
- v1.2.4-rc1
- v1.2.3
- v1.2.3-rc2
- v1.2.3-rc1
- v1.2.2
- v1.2.1
- v1.2.1-rc2
- v1.2.1-rc1
- v1.2.0
- v1.2.0-rc2
- v1.2.0-rc1
- v1.2.0-preview1
- v1.1.3
- v1.1.3-rc3
- v1.1.3-rc2
- v1.1.3-rc1
- v1.1.2
- v1.1.2-rc1
- v1.1.1
- v1.1.1-rc2
- v1.1.1-rc1
- v1.1.1-preview1
- v1.1.0
- v1.1.0-rc3
- v1.1.0-rc2
- v1.1.0-rc1
- v1.0.2
- v1.0.2-rc2
- v1.0.2-rc1
- v1.0.1
- v1.0.1-rc3
- v1.0.1-rc2
1 parent
b76af12
commit d2460a9
Showing
5 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
longhornio/longhorn-engine:master | ||
longhornio/longhorn-instance-manager:v1_20200514 | ||
longhornio/longhorn-manager:master | ||
longhornio/longhorn-manager-test:master | ||
longhornio/longhorn-test:upgrade-test.3-3.3-3.1-1 | ||
longhornio/longhorn-ui:master | ||
longhornio/csi-attacher:v2.0.0 | ||
longhornio/csi-node-driver-registrar:v1.2.0 | ||
longhornio/csi-provisioner:v1.4.0 | ||
longhornio/csi-resizer:v0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
longhornio/longhorn-engine:v1.0.1 | ||
longhornio/longhorn-instance-manager:v1_20200514 | ||
longhornio/longhorn-manager:v1.0.1 | ||
longhornio/longhorn-manager-test:v1.0.1 | ||
longhornio/longhorn-test:upgrade-test.3-3.3-3.1-1 | ||
longhornio/longhorn-ui:v1.0.1 | ||
quay.io/k8scsi/csi-attacher:v2.0.0 | ||
quay.io/k8scsi/csi-node-driver-registrar:v1.2.0 | ||
quay.io/k8scsi/csi-provisioner:v1.4.0 | ||
quay.io/k8scsi/csi-resizer:v0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
longhornio/longhorn-engine:v1.0.1 | ||
longhornio/longhorn-instance-manager:v1_20200514 | ||
longhornio/longhorn-manager:v1.0.1 | ||
longhornio/longhorn-manager-test:v1.0.1 | ||
longhornio/longhorn-ui:v1.0.1 | ||
longhornio/csi-attacher:v2.0.0 | ||
longhornio/csi-node-driver-registrar:v1.2.0 | ||
longhornio/csi-provisioner:v1.4.0 | ||
longhornio/csi-resizer:v0.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
list="longhorn-images.txt" | ||
images="longhorn-images.tar.gz" | ||
|
||
POSITIONAL=() | ||
while [[ $# -gt 0 ]]; do | ||
key="$1" | ||
case $key in | ||
-r|--registry) | ||
reg="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
-l|--image-list) | ||
list="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
-i|--images) | ||
images="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
-h|--help) | ||
help="true" | ||
shift | ||
;; | ||
esac | ||
done | ||
|
||
usage () { | ||
echo "USAGE: $0 [--image-list longhorn-images.txt] [--images longhorn-images.tar.gz] --registry my.registry.com:5000" | ||
echo " [-l|--images-list path] text file with list of images. 1 per line." | ||
echo " [-l|--images path] tar.gz generated by docker save." | ||
echo " [-r|--registry registry:port] target private registry:port. By default, registry is Docker Hub" | ||
echo " [-h|--help] Usage message" | ||
} | ||
|
||
if [[ $help ]]; then | ||
usage | ||
exit 0 | ||
fi | ||
|
||
if [[ -n $reg ]]; then | ||
reg+="/" | ||
fi | ||
|
||
set -e -x | ||
|
||
docker load --input ${images} | ||
|
||
for i in $(cat ${list}); do | ||
case $i in | ||
*/*/*) | ||
docker tag ${i} ${reg}longhornio/${i#*/*/} | ||
docker push ${reg}longhornio/${i#*/*/} | ||
;; | ||
*/*) | ||
docker tag ${i} ${reg}longhornio/${i#*/} | ||
docker push ${reg}longhornio/${i#*/} | ||
;; | ||
*) | ||
docker tag ${i} ${reg}longhornio/${i} | ||
docker push ${reg}longhornio/${i} | ||
;; | ||
esac | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
list="longhorn-images.txt" | ||
images="longhorn-images.tar.gz" | ||
|
||
POSITIONAL=() | ||
while [[ $# -gt 0 ]]; do | ||
key="$1" | ||
case $key in | ||
-i|--images) | ||
images="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
-l|--image-list) | ||
list="$2" | ||
shift # past argument | ||
shift # past value | ||
;; | ||
-h|--help) | ||
help="true" | ||
shift | ||
;; | ||
esac | ||
done | ||
|
||
usage () { | ||
echo "USAGE: $0 [--image-list longhorn-images.txt] [--images longhorn-images.tar.gz]" | ||
echo " [-l|--images-list path] text file with list of images. 1 per line." | ||
echo " [-l|--images path] tar.gz generated by docker save." | ||
echo " [-h|--help] Usage message" | ||
} | ||
|
||
if [[ $help ]]; then | ||
usage | ||
exit 0 | ||
fi | ||
|
||
set -e -x | ||
|
||
for i in $(cat ${list}); do | ||
docker pull ${i} | ||
done | ||
|
||
docker save $(cat ${list} | tr '\n' ' ') | gzip -c > ${images} |