Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ansible: add Alpine Linux 3.20 and 3.21 #3989

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

ansible: add Alpine Linux 3.20 and 3.21 #3989

wants to merge 2 commits into from

Conversation

targos
Copy link
Member

@targos targos commented Dec 22, 2024

Closes: #3988

@targos
Copy link
Member Author

targos commented Dec 22, 2024

I'll mark ready after testing it.

@targos
Copy link
Member Author

targos commented Dec 22, 2024

`docker build` without it is deprecated.
@targos
Copy link
Member Author

targos commented Dec 22, 2024

Error for test-digitalocean-ubuntu2204_docker-x64-1: ERROR: failed to solve: alpine:3.20: failed to copy: httpReadSeeker: failed open: unexpected status code https://registry-1.docker.io/v2/library/alpine/manifests/sha256:1e42bbe2508154c9126d48c2b8a75420c3544343bf86fd041fb7527e017a4b4a: 429 Too Many Requests - Server message: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

Guess I'll have to retry later...

@targos
Copy link
Member Author

targos commented Dec 22, 2024

Success for test-digitalocean-ubuntu2204_docker-x64-1.
Test on main: https://ci.nodejs.org/view/All/job/node-test-commit-linux-targos-alpine/

@targos
Copy link
Member Author

targos commented Dec 22, 2024

Applied the changes to test-ibm-ubuntu2204_docker-x64-1 too.
Tried again on test-digitalocean-ubuntu2204_docker-x64-1 but I still got the rate limit error.

@targos
Copy link
Member Author

targos commented Jan 6, 2025

I tried again today and still got the rate limit error. Don't know what to do at this point.

@targos
Copy link
Member Author

targos commented Jan 11, 2025

@nodejs/build-infra any idea?

@richardlau
Copy link
Member

If we're hitting rate limits pulling from Dockerhub, I think we'd have to either switch to a mirror (and hope we don't hit a rate limit on the mirror) or use an account (which we may need to talk to the Foundation about).

According to https://docs.docker.com/docker-hub/download-rate-limit/#pull-rate-limit, unauthenticated we ought to be able to pull 10 images per hour per IP address.

@targos
Copy link
Member Author

targos commented Jan 13, 2025

Is the machine regularly pulling stuff from Docker hub? I'm hitting the rate limit on the first try.

@richardlau
Copy link
Member

Is the machine regularly pulling stuff from Docker hub? I'm hitting the rate limit on the first try.

Not to my knowledge -- it should only need to pull when running the playbook.

@targos targos changed the title ansible: add Alpine Linux 20 and 21 ansible: add Alpine Linux 3.20 and 3.21 Jan 14, 2025
@targos
Copy link
Member Author

targos commented Jan 14, 2025

# curl --head -H "Authorization: Bearer $TOKEN" https://registry-1.docker.io/v2/ratelimitpreview/test/manifests/latest
HTTP/1.1 200 OK
content-length: 527
content-type: application/vnd.docker.distribution.manifest.v2+json
docker-content-digest: sha256:c2d41d2ba6d8b7b4a3ffec621578eb4d9a0909df29dfa2f6fd8a2e5fd0836aed
docker-distribution-api-version: registry/2.0
etag: "sha256:c2d41d2ba6d8b7b4a3ffec621578eb4d9a0909df29dfa2f6fd8a2e5fd0836aed"
date: Tue, 14 Jan 2025 07:46:59 GMT
strict-transport-security: max-age=31536000
ratelimit-limit: 100;w=21600
ratelimit-remaining: 0;w=21600
docker-ratelimit-source: 2604:a880:2:d0::

Source is ipv6. We're probably blocked because of other DO customers with the same prefix.

@richardlau
Copy link
Member

@ryanaslett Do you know if other projects have hit Docker Hub pull limits, and if so how they dealt with them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade Alpine Linux to 3.20 and 3.21
2 participants