Skip to content

Commit 11cd5c2

Browse files
committed
fix: revert to Docker Hub for crane pull, make docker load non-blocking
Revert public.ecr.aws ECR mirror back to Docker Hub — the ECR public registry may not mirror official Docker library images, and an invalid tarball would block startup since docker load was chained with &&. Also wrap docker load in (command || true) so a failure doesn't prevent the GitHub Actions runner from starting. The pre-loaded image is an optimization, not a hard dependency.
1 parent 7f1b5a5 commit 11cd5c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def _get_gpu_config(gpu_key: str):
225225
.run_commands(
226226
"curl -sL https://github.com/google/go-containerregistry/releases/download/v0.21.5/go-containerregistry_Linux_x86_64.tar.gz | tar -xzf - -C /usr/local/bin crane", # noqa: E501
227227
"mkdir -p /images",
228-
"crane pull public.ecr.aws/docker/library/node:22-alpine /images/node-22-alpine.tar",
228+
"crane pull node:22-alpine /images/node-22-alpine.tar",
229229
)
230230
# Layer 2: Python deps (semi-stable)
231231
.apt_install("python3", "python3-pip", "python-is-python3")
@@ -741,7 +741,7 @@ async def github_webhook(request: Request):
741741
"bash -c '/start-dockerd.sh &'"
742742
" && sleep 5"
743743
" && until docker info > /dev/null 2>&1; do sleep 1; done"
744-
" && docker load -i /images/node-22-alpine.tar"
744+
" && (docker load -i /images/node-22-alpine.tar || true)"
745745
" && cd /actions-runner"
746746
" && export RUNNER_ALLOW_RUNASROOT=1"
747747
" && export DOCKER_BUILDKIT=1"

0 commit comments

Comments
 (0)