Skip to content

Commit

Permalink
fix: Rever demo to use localhost instead of 0.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Nov 22, 2022
1 parent 802bfcb commit 9f712e1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions hack/demo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,14 @@ kind delete clusters image-credential-provider-test || true
kind create cluster --config="${DEMODATA_DIR}/kind-config.yaml" --name image-credential-provider-test

docker image pull nginx:latest
docker image tag docker.io/library/nginx:latest "0.0.0.0:${REGISTRY_PORT}/library/nginx:latest"
docker image tag docker.io/library/nginx:latest "localhost:${REGISTRY_PORT}/library/nginx:latest"

echo "${REGISTRY_PASSWORD}" | docker login -u "${REGISTRY_USERNAME}" --password-stdin "0.0.0.0:${REGISTRY_PORT}"
docker image push "0.0.0.0:${REGISTRY_PORT}/library/nginx:latest"
echo "${REGISTRY_PASSWORD}" | docker login -u "${REGISTRY_USERNAME}" --password-stdin "localhost:${REGISTRY_PORT}"
docker image push "localhost:${REGISTRY_PORT}/library/nginx:latest"

# Retag and push with a tag that doesn't exist in docker.io to test Containerd mirror config
docker image tag docker.io/library/nginx:latest "0.0.0.0:${REGISTRY_PORT}/library/nginx:$(whoami)"
docker image push "0.0.0.0:${REGISTRY_PORT}/library/nginx:$(whoami)"
docker image tag docker.io/library/nginx:latest "localhost:${REGISTRY_PORT}/library/nginx:$(whoami)"
docker image push "localhost:${REGISTRY_PORT}/library/nginx:$(whoami)"

# Wait for KIND to startup
sleep 10s
Expand Down

0 comments on commit 9f712e1

Please sign in to comment.