Skip to content

Commit

Permalink
Add variables for registry image
Browse files Browse the repository at this point in the history
Add REGISTRY_IMAGE_VERSION and set it to 2.7.1
Add DOCKER_REGISTRY_IMAGE_DEFAULT_PATH default for quay.io and
docker.io

Signed-off-by: Riccardo Pittau <[email protected]>
  • Loading branch information
elfosardo committed Feb 28, 2025
1 parent 08f75a0 commit f96928d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -269,8 +269,14 @@ export IRSO_IRONIC_VERSION="${IRSO_IRONIC_VERSION:-latest}"
# Docker Hub proxy registry (or docker.io if no proxy)
export DOCKER_HUB_PROXY="${DOCKER_HUB_PROXY:-docker.io}"

REGISTRY_IMAGE_VERSION="2.7.1"

DOCKER_REGISTRY_IMAGE_DEFAULT_PATH="library/registry:${REGISTRY_IMAGE_VERSION}"
# Docker registry for local images
export DOCKER_REGISTRY_IMAGE="${DOCKER_REGISTRY_IMAGE:-${DOCKER_HUB_PROXY}/library/registry:2.7.1}"
if [[ "${DOCKER_HUB_PROXY}" = "quay.io" ]]; then
export DOCKER_REGISTRY_IMAGE_DEFAULT_PATH="libpod/registry:${REGISTRY_IMAGE_VERSION}"
fi
export DOCKER_REGISTRY_IMAGE="${DOCKER_REGISTRY_IMAGE:-${DOCKER_HUB_PROXY}/${DOCKER_REGISTRY_IMAGE_DEFAULT_PATH}}"

# Registry to pull metal3 container images from
export CONTAINER_REGISTRY="${CONTAINER_REGISTRY:-quay.io}"
Expand Down

0 comments on commit f96928d

Please sign in to comment.