Skip to content

Commit

Permalink
Merge pull request #3 from hifis-net/remove-port
Browse files Browse the repository at this point in the history
Remove hard-coded port
  • Loading branch information
Normo authored Dec 9, 2024
2 parents 09ee409 + c4b7fdb commit 5295834
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kolla-pull-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# registry and push them to local docker registry.

public_registry_host="quay.io"
local_registry_host="docker-registry"
local_registry_host="localhost:4000"
kolla_release="zed-ubuntu-jammy"
IMAGE_LIST="kolla-images.list"

Expand All @@ -12,8 +12,8 @@ while IFS= read -r image
do
echo "===========> Pull ==> ${image}"
docker pull "${public_registry_host}/openstack.kolla/${image}:${kolla_release}"
docker tag "${public_registry_host}/openstack.kolla/${image}:${kolla_release}" "$local_registry_host:4000/openstack.kolla/${image}:${kolla_release}"
docker tag "${public_registry_host}/openstack.kolla/${image}:${kolla_release}" "${local_registry_host}/openstack.kolla/${image}:${kolla_release}"
echo "===========> Push ==> ${image}"
docker push "$local_registry_host:4000/openstack.kolla/${image}:${kolla_release}"
docker push "${local_registry_host}/openstack.kolla/${image}:${kolla_release}"
docker rmi "${public_registry_host}/openstack.kolla/${image}:${kolla_release}"
done < $IMAGE_LIST

0 comments on commit 5295834

Please sign in to comment.