docker-library / memcached

Docker Official Image packaging for memcached
http://memcached.org/
BSD 3-Clause "New" or "Revised" License
132 stars 99 forks source link

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

Closed tianon closed 11 months ago

tianon commented 11 months ago

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 https://github.com/docker-library/php/pull/1052 (and linked PRs). Follow up to https://github.com/docker-library/memcached/pull/93

tianon commented 11 months ago
Diff: ```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 (@tianon), Joseph Ferguson (@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 ```