Skip to content
Myr

[actions] pull container images through Google's Docker Hub mirror

Before adoption: this commit came in with the history the project adopted, so no landing records it.

DockerHub's anonymous pull rate limit applies per IP for hours, so retrying cannot ride it out on shared runners; `mirror.gcr.io` serves the same official images without that limit, as the io.js source-install job already does.

authored by Jordan Harband · committed by Jordan Harband · parent 906fb60 · Browse files · 3 files+20 added−10 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+20 added−10 removed

  • other:+20 added−10 removed

3 files+20 added−10 removed

modified:.github/workflows/tests-alpine.yml+10 added-4 removed
modified:.github/workflows/tests-installation-node.yml+5 added-3 removed
42 unmodified lines
43 production.cloudflare.docker.com:44344 production.cloudfront.docker.com:44345 registry-1.docker.io:44346 auth.docker.io:44347 mirror.gcr.io:44348 - uses: actions/checkout@v649 id: checkout50 continue-on-error: true51 with:
13 unmodified lines
65 - run: npm ls urchin66 - run: npx which urchin67 - name: Run installation_node tests in container68 run: |68 # Retry the image pull to tolerate transient Docker registry failures69 # Pull through Google's Docker Hub mirror, which is not subject to Docker Hub's70 # anonymous pull rate limits; retry to tolerate transient registry failures71 for i in 1 2 3 4 5; do70 docker pull ubuntu:16.04 && break72 docker pull mirror.gcr.io/library/ubuntu:16.04 && break73 echo "docker pull failed, attempt $i/5"74 sleep $((i * 5))75 done76 docker run --rm \
3 unmodified lines
80 -e "TERM=xterm-256color" \81 -e "DEBIAN_FRONTEND=noninteractive" \82 -e "GITHUB_ACTIONS=true" \83 -e "WITHOUT_CURL=${{ matrix.without_curl }}" \82 ubuntu:16.04 \84 mirror.gcr.io/library/ubuntu:16.04 \85 bash -c '86 set -ex8788 sh /workspace/.github/scripts/apt-install.sh git curl wget make build-essential python zsh libssl-dev
40 unmodified lines
modified:.github/workflows/tests-xenial.yml+5 added-3 removed
39 unmodified lines
40 production.cloudflare.docker.com:44341 production.cloudfront.docker.com:44342 registry-1.docker.io:44343 auth.docker.io:44344 mirror.gcr.io:44345 - uses: actions/checkout@v646 id: checkout47 continue-on-error: true48 with:
13 unmodified lines
62 - run: npm ls urchin63 - run: npx which urchin64 - name: Run xenial tests in container65 run: |65 # Retry the image pull to tolerate transient Docker registry failures66 # Pull through Google's Docker Hub mirror, which is not subject to Docker Hub's67 # anonymous pull rate limits; retry to tolerate transient registry failures68 for i in 1 2 3 4 5; do67 docker pull ubuntu:16.04 && break69 docker pull mirror.gcr.io/library/ubuntu:16.04 && break70 echo "docker pull failed, attempt $i/5"71 sleep $((i * 5))72 done73 docker run --rm \
2 unmodified lines
76 -e "TEST_SHELL=${{ matrix.shell }}" \77 -e "TERM=xterm-256color" \78 -e "DEBIAN_FRONTEND=noninteractive" \79 -e "GITHUB_ACTIONS=true" \78 ubuntu:16.04 \80 mirror.gcr.io/library/ubuntu:16.04 \81 bash -c '82 set -ex8384 sh /workspace/.github/scripts/apt-install.sh git curl wget make build-essential python zsh libssl-dev
34 unmodified lines