Browse Source

Cache registry image source config

- Allow the source for the cache registry image be tunable
  by env params.

Change-Id: I9cd973317071f24bf820a79fa3b1ac87ea301e19
changes/25/633525/4
Scott Hussey 3 months ago
parent
commit
da681cac78

+ 1
- 0
tools/multi_nodes_gate/airship_gate/lib/config.sh View File

@@ -11,6 +11,7 @@ export IMAGE_PEGLEG_CLI=${IMAGE_PEGLEG_CLI:-quay.io/airshipit/pegleg:50ce7a02e08
11 11
 export IMAGE_SHIPYARD_CLI=${IMAGE_SHIPYARD_CLI:-quay.io/airshipit/shipyard:4dd6b484d11e86ad51da733841b9ef137421d461}
12 12
 export IMAGE_COREDNS=${IMAGE_COREDNS:-docker.io/coredns/coredns:1.2.2}
13 13
 export IMAGE_DRYDOCK_CLI=${IMAGE_DRYDOCK_CLI:-quay.io/airshipit/drydock:d93d6d5a0a370ced536180612d1ade708e29cd47}
14
+export IMAGE_DOCKER_REGISTRY=${IMAGE_DOCKER_REGISTRY:-"docker.io/registry:2"}
14 15
 export PROMENADE_DEBUG=${PROMENADE_DEBUG:-0}
15 16
 export REGISTRY_DATA_DIR=${REGISTRY_DATA_DIR:-/mnt/registry}
16 17
 export VIRSH_POOL=${VIRSH_POOL:-airship}

+ 1
- 1
tools/multi_nodes_gate/airship_gate/lib/registry.sh View File

@@ -69,6 +69,6 @@ registry_up() {
69 69
             --restart=always \
70 70
             --name registry \
71 71
             -v "${REGISTRY_DATA_DIR}:/var/lib/registry" \
72
-                registry:2 &>> "${LOG_FILE}"
72
+                "${IMAGE_DOCKER_REGISTRY}" &>> "${LOG_FILE}"
73 73
     fi
74 74
 }

Loading…
Cancel
Save