Skip to content

Fix "tip" arches (and set "latest" alias automatically) #554

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

tianon
Copy link
Member

@tianon tianon commented Feb 14, 2025

This is a follow-up to #531, specifically to fix #531 (comment)

This exhibits as arm32v5 being in the list of "supported" architectures for golang:tip even though the golang:latest it copies from doesn't ever support that architecture (and thus the downstream "naughty FROM" script gives us - golang:tip-20250209-bookworm (FROM golang:bookworm) [arm32v5]).

This updates our code to pre-sort versions.json so that it's descending version order with tip last -- technically we could argue that -rc versions should be below GA versions (but above tip), but maybe that's a future improvement. Happy to implement if that goes in here (especially as it would make the "what's latest" calculation even simpler 😂).

@@ -1,19 +1,19 @@
{
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ diff -u <(git show docker-library/master:versions.json | jq -S) <(git show HEAD:versions.json | jq -S)
$ 

👀

@tianon
Copy link
Member Author

tianon commented Feb 14, 2025

$ diff -u <(bashbrew cat golang) <(bashbrew cat <(./generate-stackbrew-library.sh))
--- /dev/fd/63	2025-02-14 12:51:11.249700030 -0800
+++ /dev/fd/62	2025-02-14 12:51:11.249700030 -0800
@@ -139,3 +139,24 @@
 Directory: 1.23/windows/nanoserver-1809
 Builder: classic
 Constraints: nanoserver-1809, windowsservercore-1809
+
+Tags: tip-20250209-bookworm, tip-bookworm
+SharedTags: tip-20250209, tip
+Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/bookworm
+
+Tags: tip-20250209-bullseye, tip-bullseye
+Architectures: amd64, arm32v7, arm64v8, i386
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/bullseye
+
+Tags: tip-20250209-alpine3.21, tip-alpine3.21, tip-20250209-alpine, tip-alpine
+Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/alpine3.21
+
+Tags: tip-20250209-alpine3.20, tip-alpine3.20
+Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/alpine3.20

@tianon
Copy link
Member Author

tianon commented Feb 14, 2025

$ git show docker-library/master:generate-stackbrew-library.sh > old.sh && diff -u <(bashbrew cat <(bash old.sh)) <(bashbrew cat <(./generate-stackbrew-library.sh))
--- /dev/fd/63	2025-02-14 12:54:23.579635040 -0800
+++ /dev/fd/62	2025-02-14 12:54:23.583635080 -0800
@@ -2,27 +2,6 @@
 GitRepo: https://github.com/docker-library/golang.git
 Builder: buildkit
 
-Tags: tip-20250209-bookworm, tip-bookworm
-SharedTags: tip-20250209, tip
-Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
-Directory: tip/bookworm
-
-Tags: tip-20250209-bullseye, tip-bullseye
-Architectures: amd64, arm32v7, arm64v8, i386
-GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
-Directory: tip/bullseye
-
-Tags: tip-20250209-alpine3.21, tip-alpine3.21, tip-20250209-alpine, tip-alpine
-Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
-GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
-Directory: tip/alpine3.21
-
-Tags: tip-20250209-alpine3.20, tip-alpine3.20
-Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
-GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
-Directory: tip/alpine3.20
-
 Tags: 1.24.0-bookworm, 1.24-bookworm, 1-bookworm, bookworm
 SharedTags: 1.24.0, 1.24, 1, latest
 Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
@@ -160,3 +139,24 @@
 Directory: 1.23/windows/nanoserver-1809
 Builder: classic
 Constraints: nanoserver-1809, windowsservercore-1809
+
+Tags: tip-20250209-bookworm, tip-bookworm
+SharedTags: tip-20250209, tip
+Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/bookworm
+
+Tags: tip-20250209-bullseye, tip-bullseye
+Architectures: amd64, arm32v7, arm64v8, i386
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/bullseye
+
+Tags: tip-20250209-alpine3.21, tip-alpine3.21, tip-20250209-alpine, tip-alpine
+Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/alpine3.21
+
+Tags: tip-20250209-alpine3.20, tip-alpine3.20
+Architectures: amd64, arm32v6, arm32v7, arm64v8, i386, ppc64le, riscv64, s390x
+GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
+Directory: tip/alpine3.20

@tianon
Copy link
Member Author

tianon commented Feb 14, 2025

Last one, I promise; this is the real "money" shot -- this is using our DOI _bashbrew-cat-sorted.sh to generate a saner diff:

$ diff -u before.txt after.txt
--- before.txt	2025-02-14 12:56:08.824694574 -0800
+++ after.txt	2025-02-14 12:56:23.024837560 -0800
@@ -152,7 +152,7 @@
 
 Tags: tip-20250209-bookworm, tip-bookworm
 SharedTags: tip-20250209, tip
-Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
+Architectures: amd64, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
 GitCommit: 5a29b9e587f019aa33410a8fefb67af33e15b63c
 Directory: tip/bookworm
 

Copy link
Member

@yosifkit yosifkit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is a need to move the RC's in the sorting for now. LGTM

@yosifkit
Copy link
Member

Windows failures are docker-library/official-images#18435 (comment):

The problem is that the windows-2025 runner is too old to run the mcr.microsoft.com/windows/servercore:ltsc2025 image released this week (actions/runner-images#11582).

@yosifkit yosifkit merged commit 9f79103 into docker-library:master Feb 14, 2025
16 checks passed
@yosifkit yosifkit deleted the tip-arches branch February 14, 2025 23:41
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Feb 15, 2025
Changes:

- docker-library/golang@9f79103: Merge pull request docker-library/golang#554 from infosiftr/tip-arches
- docker-library/golang@e3086cb: Fix "tip" arches (and set "latest" alias automatically)
- docker-library/golang@2a49384: Merge pull request docker-library/golang#531 from infosiftr/tip
- docker-library/golang@5a29b9e: Add "tip" version
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants