[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
Provenance
- Commit
37be73f- Tree
65114f2- Author
Jordan Harband <ljharb@gmail.com>- Committer
Jordan Harband <ljharb@gmail.com>- Parent
906fb60
3 files changed+20 added−10 removed
modified:.github/workflows/tests-alpine.yml+10 added-4 removed
44 unmodified lines45464748495051525314 unmodified lines686970717273747275767778798081828381848586878855 unmodified lines14414514614714814915015115215315415515615715815315916016116216316416516616116716816917017128 unmodified lines44 unmodified lines dl-cdn.alpinelinux.org:443 dl-cdn.alpinelinux.org:80 registry-1.docker.io:443 auth.docker.io:443 mirror.gcr.io:443 production.cloudflare.docker.com:443 production.cloudfront.docker.com:443 - uses: actions/checkout@v6 id: checkout14 unmodified lines skip-ls-check: true - run: npm ls urchin - name: 'Run fast tests on Alpine ${{ matrix.alpine }} (${{ matrix.arch }})' run: | # Pull through Google's Docker Hub mirror, which is not subject to Docker Hub's # anonymous pull rate limits; retry to tolerate transient registry failures for i in 1 2 3 4 5; do docker pull alpine:${{ matrix.alpine }} && break docker pull mirror.gcr.io/library/alpine:${{ matrix.alpine }} && break echo "docker pull failed, attempt $i/5"; sleep $((i * 5)) done docker run --rm \ -v "${{ github.workspace }}:/workspace" \ -w /workspace \ -e "TEST_SHELL=${{ matrix.shell }}" \ -e "TERM=xterm-256color" \ -e "GITHUB_ACTIONS=true" \ alpine:${{ matrix.alpine }} \ mirror.gcr.io/library/alpine:${{ matrix.alpine }} \ sh -c ' set -ex cat /etc/alpine-release; uname -m for i in 1 2 3 4 5; do55 unmodified lines dl-cdn.alpinelinux.org:443 dl-cdn.alpinelinux.org:80 registry-1.docker.io:443 auth.docker.io:443 mirror.gcr.io:443 production.cloudflare.docker.com:443 production.cloudfront.docker.com:443 - uses: actions/checkout@v6 with: submodules: false - name: 'Install node ${{ matrix.node }} from a musl binary on Alpine ${{ matrix.alpine }}' run: | # Pull through Google's Docker Hub mirror, which is not subject to Docker Hub's # anonymous pull rate limits; retry to tolerate transient registry failures for i in 1 2 3 4 5; do docker pull alpine:${{ matrix.alpine }} && break docker pull mirror.gcr.io/library/alpine:${{ matrix.alpine }} && break echo "docker pull failed, attempt $i/5"; sleep $((i * 5)) done docker run --rm \ -v "${{ github.workspace }}:/workspace" \ -w /workspace \ -e "NODE_VERSION=${{ matrix.node }}" \ -e "TERM=xterm-256color" \ alpine:${{ matrix.alpine }} \ mirror.gcr.io/library/alpine:${{ matrix.alpine }} \ sh -c ' set -ex cat /etc/alpine-release; uname -m # libstdc++/libgcc are load-bearing: the unofficial musl node28 unmodified linesmodified:.github/workflows/tests-installation-node.yml+5 added-3 removed
42 unmodified lines43 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 lines65 - 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 lines80 -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 -ex87 88 sh /workspace/.github/scripts/apt-install.sh git curl wget make build-essential python zsh libssl-dev40 unmodified linesmodified:.github/workflows/tests-xenial.yml+5 added-3 removed
39 unmodified lines40 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 lines62 - 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 lines76 -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 -ex83 84 sh /workspace/.github/scripts/apt-install.sh git curl wget make build-essential python zsh libssl-dev34 unmodified lines