diff --git a/build/pin-images.py b/build/pin-images.py index 1bf4112d0..f7485da6c 100755 --- a/build/pin-images.py +++ b/build/pin-images.py @@ -65,10 +65,13 @@ def get_digest(image_ref, token=None): def get_pinned_image(image_src): image_ref = reference.Reference.parse(image_src) - if image_ref.domain() == "registry.atmosphere.dev": + if ( + image_ref.domain() == "registry.atmosphere.dev" + or image_ref.domain() == "harbor.atmosphere.dev" + ): # Get token for docker.io r = requests.get( - "https://registry.atmosphere.dev/service/token", + "https://harbor.atmosphere.dev/service/token", timeout=5, params={ "service": "harbor-registry", diff --git a/images/barbican/Dockerfile b/images/barbican/Dockerfile index f457a0b48..89281275a 100644 --- a/images/barbican/Dockerfile +++ b/images/barbican/Dockerfile @@ -3,7 +3,7 @@ ARG RELEASE -FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build +FROM harbor.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build ARG BARBICAN_GIT_REF=d99764e6112cedc6ca168a29fb0279dec2d94288 ADD --keep-git-dir=true https://opendev.org/openstack/barbican.git#${BARBICAN_GIT_REF} /src/barbican RUN git -C /src/barbican fetch --unshallow @@ -14,5 +14,5 @@ pip3 install \ pykmip EOF -FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} +FROM harbor.atmosphere.dev/library/openstack-python-runtime:${RELEASE} COPY --from=build --link /var/lib/openstack /var/lib/openstack diff --git a/images/cinder/Dockerfile b/images/cinder/Dockerfile index f109f1972..425258f36 100644 --- a/images/cinder/Dockerfile +++ b/images/cinder/Dockerfile @@ -3,7 +3,7 @@ ARG RELEASE -FROM registry.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build +FROM harbor.atmosphere.dev/library/openstack-venv-builder:${RELEASE} AS build ARG CINDER_GIT_REF=db98dc207060da234c32a563c13cac1edbd62952 ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder RUN git -C /src/cinder fetch --unshallow @@ -19,7 +19,7 @@ pip3 install \ storpool.spopenstack EOF -FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} +FROM harbor.atmosphere.dev/library/openstack-python-runtime:${RELEASE} RUN <>>>>>> 4ad7b51a (Stop using CDN for CI (#2185)) ADD --keep-git-dir=true https://opendev.org/openstack/ironic.git#${IRONIC_GIT_REF} /src/ironic RUN git -C /src/ironic fetch --unshallow RUN --mount=type=cache,mode=0755,target=/root/.cache/pip,sharing=private <