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

Update templating to pin to only major version and use a single template #94

Merged
merged 1 commit into from
Dec 8, 2023

Conversation

tianon
Copy link
Member

@tianon tianon commented Dec 2, 2023

It's extremely unlikely that memcached is going to maintain more than one major version at a time (even that seems to be a bit much sometimes, which is relatable).

This also converts the Dockerfiles to use semicolons instead of && chains (see https://github.com/docker-library/memcached/compare/b8a7264..00003b7 to compare this without that conversion).

Additionally, this converts us to just two variants and auto-detects the latest Alpine/Debian, since we don't have a good reason to support more than one of each Debian and Alpine.

See also docker-library/php#1052 (and linked PRs).
Follow up to #93

@tianon
Copy link
Member Author

tianon commented Dec 2, 2023

Diff:
$ diff -u <(wget -qO- 'https://github.com/docker-library-bot/official-images/raw/152c3b704c139f0bfc7a006a510f79e590328af0/library/memcached') <(./generate-stackbrew-library.sh)
--- /dev/fd/63	2023-12-01 16:52:33.625429303 -0800
+++ /dev/fd/62	2023-12-01 16:52:33.625429303 -0800
@@ -1,4 +1,4 @@
-# this file is generated via https://github.com/docker-library/memcached/blob/3e552dc7c3907467c258c986cb4763a544ee3041/generate-stackbrew-library.sh
+# this file is generated via https://github.com/docker-library/memcached/blob/abaef90ed3a87545d0cca915444f24e063c62140/generate-stackbrew-library.sh
 
 Maintainers: Tianon Gravi <admwiggin@gmail.com> (@tianon),
              Joseph Ferguson <yosifkit@gmail.com> (@yosifkit)
@@ -6,10 +6,10 @@
 
 Tags: 1.6.22, 1.6, 1, latest, 1.6.22-bookworm, 1.6-bookworm, 1-bookworm, bookworm
 Architectures: amd64, arm32v5, arm32v7, arm64v8, i386, mips64le, ppc64le, s390x
-GitCommit: b8a7264e4fc952fd71f2fe325908d6ba06e8e061
-Directory: debian
+GitCommit: abaef90ed3a87545d0cca915444f24e063c62140
+Directory: 1/debian
 
 Tags: 1.6.22-alpine, 1.6-alpine, 1-alpine, alpine, 1.6.22-alpine3.18, 1.6-alpine3.18, 1-alpine3.18, alpine3.18
 Architectures: amd64, arm32v7, arm64v8, i386, ppc64le, s390x
-GitCommit: b8a7264e4fc952fd71f2fe325908d6ba06e8e061
-Directory: alpine
+GitCommit: abaef90ed3a87545d0cca915444f24e063c62140
+Directory: 1/alpine

It's extremely unlikely that memcached is going to maintain more than one major version at a time (even that seems to be a bit much sometimes, which is relatable).

This also converts the Dockerfiles to use semicolons instead of `&&` chains (see https://github.com/docker-library/memcached/compare/b8a7264..00003b7 to compare this without that conversion).

Additionally, this converts us to just two variants and auto-detects the latest Alpine/Debian, since we don't have a good reason to support more than one of each Debian and Alpine.
Comment on lines +48 to 50
gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \
./configure \
--build="$gnuArch" \
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a bug we didn't catch before now because we weren't using set -u 😂 😅

@yosifkit yosifkit merged commit 9cd87ed into docker-library:master Dec 8, 2023
6 checks passed
@yosifkit yosifkit deleted the one-template branch December 8, 2023 23:04
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Dec 9, 2023
Changes:

- docker-library/memcached@471a298: Update 1 to alpine 3.19
- docker-library/memcached@9cd87ed: Merge pull request docker-library/memcached#94 from infosiftr/one-template
- docker-library/memcached@52c3fa2: Update templating to pin to only major version and use a single template
- docker-library/memcached@1cd4fbf: Merge pull request docker-library/memcached#93 from LaurentGoderre/templating
- docker-library/memcached@8b76567: Implement jq templating
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.

2 participants