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 675cf8f2b..f32e73c45 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=7d6749fcb1ad16a3350de82cd8e523d5b55306f8 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 e28c8174b..b489a539f 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=4aa6590a483901de64e0d162fff11f3d2d7f9977 ADD --keep-git-dir=true https://opendev.org/openstack/cinder.git#${CINDER_GIT_REF} /src/cinder RUN git -C /src/cinder fetch --unshallow @@ -25,7 +25,7 @@ ADD --chmod=644 \ https://github.com/storpool/storpool-openstack-integration/raw/master/drivers/os_brick/openstack/zed/storpool.py \ /var/lib/openstack/lib/python3.10/site-packages/os_brick/initiator/connectors/storpool.py -FROM registry.atmosphere.dev/library/openstack-python-runtime:${RELEASE} +FROM harbor.atmosphere.dev/library/openstack-python-runtime:${RELEASE} RUN <