Skip to content

Commit

Permalink
remove docker-io-mirror / use mirror.gcr.io directly
Browse files Browse the repository at this point in the history
  • Loading branch information
damoon committed Nov 16, 2020
1 parent 5e04bea commit ab0a938
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 91 deletions.
2 changes: 1 addition & 1 deletion Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ else:
k8s_resource(
'wedding',
port_forwards=['12376:2376'],
resource_deps=['setup-s3-bucket', 'wedding-registry', 'docker-io-mirror'],
resource_deps=['setup-s3-bucket', 'wedding-registry'],
)
6 changes: 1 addition & 5 deletions deployment/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@ data:
noProcessSandbox = true
[registry."docker.io"]
mirrors = ["docker-io-mirror:5000"]
[registry."docker-io-mirror:5000"]
http = true
insecure = true
mirrors = ["mirror.gcr.io"]
[registry."wedding-registry:5000"]
http = true
Expand Down
3 changes: 0 additions & 3 deletions services/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,3 @@ k8s_resource(

k8s_yaml('wedding-registry.yaml')
k8s_resource('wedding-registry', port_forwards=5000)

k8s_yaml('docker-io-mirror.yaml')
k8s_resource('docker-io-mirror', port_forwards="5001:5000")
78 changes: 0 additions & 78 deletions services/docker-io-mirror.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ local_resource ('test docker build',
)

local_resource ('test docker pull tag push',
'timeout 80 bash docker-pull-tag-push.sh',
'timeout 100 bash docker-pull-tag-push.sh',
deps=['..'],
resource_deps=['wedding'],
allow_parallel=True,
Expand Down
6 changes: 3 additions & 3 deletions tests/docker-pull-tag-push.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ set -uexo pipefail
export DOCKER_HOST=tcp://127.0.0.1:12376
until docker version; do sleep 1; done

docker pull mirror.gcr.io/library/alpine
if docker pull mirror.gcr.io/library/missing; then echo "this should fail"; false; else echo "exit code propagated"; fi
docker pull alpine
if docker pull missing; then echo "this should fail"; false; else echo "exit code propagated"; fi

docker tag mirror.gcr.io/library/alpine wedding-registry:5000/test-push:alpine
docker tag alpine wedding-registry:5000/test-push:alpine
if docker tag missing b; then echo "this should fail"; false; else echo "exit code propagated"; fi

docker push wedding-registry:5000/test-push:alpine
Expand Down

0 comments on commit ab0a938

Please sign in to comment.