Skip to content

Commit

Permalink
Use the local registry in the nutshell deployment (#2473)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <[email protected]>
  • Loading branch information
berendt authored Sep 19, 2024
1 parent a66d832 commit 2a99acf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions scripts/deploy-in-a-nutshell.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/usr/bin/env bash
set -e

# do not use the local registry
sh -c '/opt/configuration/scripts/set-docker-registry.sh'

# pull images
sh -c '/opt/configuration/scripts/pull-images.sh'

Expand Down
8 changes: 7 additions & 1 deletion scripts/set-docker-registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
set -x
set -e

source /opt/manager-vars.sh

DOCKER_REGISTRY=${1:-osism.harbor.regio.digital}

sed -i "s#ceph_docker_registry: .*#ceph_docker_registry: ${DOCKER_REGISTRY}#g" /opt/configuration/environments/configuration.yml
Expand All @@ -10,5 +12,9 @@ sed -i "s#docker_registry_kolla: .*#docker_registry_kolla: ${DOCKER_REGISTRY}#g"
sed -i "s#docker_registry_netbox: .*#docker_registry_netbox: ${DOCKER_REGISTRY}#g" /opt/configuration/environments/configuration.yml

if [[ "$DOCKER_REGISTRY" == "osism.harbor.regio.digital" ]]; then
sed -i "s/docker_namespace: osism/docker_namespace: kolla/" /opt/configuration/environments/kolla/configuration.yml
if [[ "$MANAGER_VERSION" == "latest" ]]; then
sed -i "s#docker_namespace: osism#docker_namespace: kolla#" /opt/configuration/environments/kolla/configuration.yml
else
sed -i "s#docker_namespace: osism#docker_namespace: kolla/release#" /opt/configuration/environments/kolla/configuration.yml
fi
fi

0 comments on commit 2a99acf

Please sign in to comment.