From 8de411ff609e0f6bca53061c1c0a39dd232d5c12 Mon Sep 17 00:00:00 2001 From: Roshan Khatri Date: Tue, 9 Apr 2024 20:38:34 +0000 Subject: [PATCH] Adds 7.2.4-rc1 Signed-off-by: Roshan Khatri --- .github/workflows/update-dockerhub-docs.yml | 6 +- 7.2/alpine/Dockerfile | 141 ++++++++++++++++++ 7.2/alpine/docker-entrypoint.sh | 22 +++ 7.2/debian/Dockerfile | 150 ++++++++++++++++++++ 7.2/debian/docker-entrypoint.sh | 22 +++ dockerhub-description.md | 6 +- versions.json | 56 ++++++++ versions.sh | 3 - 8 files changed, 399 insertions(+), 7 deletions(-) create mode 100644 7.2/alpine/Dockerfile create mode 100755 7.2/alpine/docker-entrypoint.sh create mode 100644 7.2/debian/Dockerfile create mode 100755 7.2/debian/docker-entrypoint.sh diff --git a/.github/workflows/update-dockerhub-docs.yml b/.github/workflows/update-dockerhub-docs.yml index 686de8c..862e0e8 100644 --- a/.github/workflows/update-dockerhub-docs.yml +++ b/.github/workflows/update-dockerhub-docs.yml @@ -1,8 +1,10 @@ name: Update Dockerhub description on: - push: - workflow_dispatch: + workflow_run: + workflows: [GitHub CI] + types: [completed] + branches: [mainline] jobs: update-dockerhub: diff --git a/7.2/alpine/Dockerfile b/7.2/alpine/Dockerfile new file mode 100644 index 0000000..6a3cf3c --- /dev/null +++ b/7.2/alpine/Dockerfile @@ -0,0 +1,141 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +FROM alpine:3.19 + +# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added +RUN set -eux; \ +# alpine already has a gid 999, so we'll use the next id + addgroup -S -g 1000 valkey; \ + adduser -S -G valkey -u 999 valkey + +# runtime dependencies +RUN set -eux; \ + apk add --no-cache \ +# add tzdata for https://github.com/docker-library/valkey/issues/138 + tzdata \ + ; + +# grab gosu for easy step-down from root +# https://github.com/tianon/gosu/releases +ENV GOSU_VERSION 1.17 +RUN set -eux; \ + apk add --no-cache --virtual .gosu-fetch gnupg; \ + arch="$(apk --print-arch)"; \ + case "$arch" in \ + 'x86_64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64'; sha256='bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3' ;; \ + 'aarch64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-arm64'; sha256='c3805a85d17f4454c23d7059bcb97e1ec1af272b90126e79ed002342de08389b' ;; \ + 'armhf') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-armhf'; sha256='e5866286277ff2a2159fb9196fea13e0a59d3f1091ea46ddb985160b94b6841b' ;; \ + 'x86') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-i386'; sha256='087dbb8fe479537e64f9c86fa49ff3b41dee1cbd28739a19aaef83dc8186b1ca' ;; \ + 'ppc64le') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-ppc64el'; sha256='1891acdcfa70046818ab6ed3c52b9d42fa10fbb7b340eb429c8c7849691dbd76' ;; \ + 'riscv64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-riscv64'; sha256='38a6444b57adce135c42d5a3689f616fc7803ddc7a07ff6f946f2ebc67a26ba6' ;; \ + 's390x') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-s390x'; sha256='69873bab588192f760547ca1f75b27cfcf106e9f7403fee6fd0600bc914979d0' ;; \ + 'armv7') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-armhf'; sha256='e5866286277ff2a2159fb9196fea13e0a59d3f1091ea46ddb985160b94b6841b' ;; \ + *) echo >&2 "error: unsupported gosu architecture: '$arch'"; exit 1 ;; \ + esac; \ + wget -O /usr/local/bin/gosu.asc "$url.asc"; \ + wget -O /usr/local/bin/gosu "$url"; \ + echo "$sha256 */usr/local/bin/gosu" | sha256sum -c -; \ + export GNUPGHOME="$(mktemp -d)"; \ + gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \ + gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \ + gpgconf --kill all; \ + rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; \ + apk del --no-network .gosu-fetch; \ + chmod +x /usr/local/bin/gosu; \ + gosu --version; \ + gosu nobody true + +ENV VALKEY_VERSION 7.2.4-rc1 +ENV VALKEY_DOWNLOAD_URL https://github.com/valkey-io/valkey/archive/refs/tags/7.2.4-rc1.tar.gz +ENV VALKEY_DOWNLOAD_SHA cd0a74184f2e6addac458f7b4f7549521e490a4ef51db0eb1dccd1a520de4cb6 + +RUN set -eux; \ + \ + apk add --no-cache --virtual .build-deps \ + coreutils \ + dpkg-dev dpkg \ + gcc \ + linux-headers \ + make \ + musl-dev \ + openssl-dev \ +# install real "wget" to avoid: +# + wget -O valkey.tar.gz https://download.valkey.io/releases/valkey-6.0.6.tar.gz +# Connecting to download.valkey.io (45.60.121.1:80) +# wget: bad header line: XxhODalH: btu; path=/; Max-Age=900 + wget \ + ; \ + \ + wget -O valkey.tar.gz "$VALKEY_DOWNLOAD_URL"; \ + echo "$VALKEY_DOWNLOAD_SHA *valkey.tar.gz" | sha256sum -c -; \ + \ + mkdir -p /usr/src/valkey; \ + tar -xzf valkey.tar.gz -C /usr/src/valkey --strip-components=1; \ + rm valkey.tar.gz; \ + \ +# disable Valkey protected mode [1] as it is unnecessary in context of Docker +# (ports are not automatically exposed when running inside Docker, but rather explicitly by specifying -p / -P) + grep -E '^ *createBoolConfig[(]"protected-mode",.*, *1 *,.*[)],$' /usr/src/valkey/src/config.c; \ + sed -ri 's!^( *createBoolConfig[(]"protected-mode",.*, *)1( *,.*[)],)$!\10\2!' /usr/src/valkey/src/config.c; \ + grep -E '^ *createBoolConfig[(]"protected-mode",.*, *0 *,.*[)],$' /usr/src/valkey/src/config.c; \ +# for future reference, we modify this directly in the source instead of just supplying a default configuration flag because apparently "if you specify any argument to valkey-server, [it assumes] you are going to specify everything" +# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default) + \ +# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility +# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation) + gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + extraJemallocConfigureFlags="--build=$gnuArch"; \ +# https://salsa.debian.org/debian/jemalloc/-/blob/c0a88c37a551be7d12e4863435365c9a6a51525f/debian/rules#L8-23 + dpkgArch="$(dpkg --print-architecture)"; \ + case "${dpkgArch##*-}" in \ + amd64 | i386 | x32) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=12" ;; \ + *) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=16" ;; \ + esac; \ + extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-hugepage=21"; \ + grep -F 'cd jemalloc && ./configure ' /usr/src/valkey/deps/Makefile; \ + sed -ri 's!cd jemalloc && ./configure !&'"$extraJemallocConfigureFlags"' !' /usr/src/valkey/deps/Makefile; \ + grep -F "cd jemalloc && ./configure $extraJemallocConfigureFlags " /usr/src/valkey/deps/Makefile; \ + \ + export BUILD_TLS=yes; \ + make -C /usr/src/valkey -j "$(nproc)" all; \ + make -C /usr/src/valkey install; \ + \ + serverMd5="$(md5sum /usr/local/bin/valkey-server | cut -d' ' -f1)"; export serverMd5; \ + find /usr/local/bin/valkey* -maxdepth 0 \ + -type f -not -name valkey-server \ + -exec sh -eux -c ' \ + md5="$(md5sum "$1" | cut -d" " -f1)"; \ + test "$md5" = "$serverMd5"; \ + ' -- '{}' ';' \ + -exec ln -svfT 'valkey-server' '{}' ';' \ + ; \ + \ + rm -r /usr/src/valkey; \ + \ + runDeps="$( \ + scanelf --needed --nobanner --format '%n#p' --recursive /usr/local \ + | tr ',' '\n' \ + | sort -u \ + | awk 'system("[ -e /usr/local/lib/" $1 " ]") == 0 { next } { print "so:" $1 }' \ + )"; \ + apk add --no-network --virtual .valkey-rundeps $runDeps; \ + apk del --no-network .build-deps; \ + \ + valkey-cli --version; \ + valkey-server --version; \ + \ + echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"valkey-server-sbom","packages":[{"name":"valkey-server","versionInfo":"7.2.4-rc1","SPDXID":"SPDXRef-Package--valkey-server","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/valkey-server@7.2.4-rc1?os_name=alpine&os_version=3.19"}],"licenseDeclared":"BSD-3-Clause"}]}' > /usr/local/valkey.spdx.json + +RUN mkdir /data && chown valkey:valkey /data +VOLUME /data +WORKDIR /data + +COPY docker-entrypoint.sh /usr/local/bin/ +ENTRYPOINT ["docker-entrypoint.sh"] + +EXPOSE 6379 +CMD ["valkey-server"] diff --git a/7.2/alpine/docker-entrypoint.sh b/7.2/alpine/docker-entrypoint.sh new file mode 100755 index 0000000..249537b --- /dev/null +++ b/7.2/alpine/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +# first arg is `-f` or `--some-option` +# or first arg is `something.conf` +if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then + set -- valkey-server "$@" +fi + +# allow the container to be started with `--user` +if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then + find . \! -user valkey -exec chown valkey '{}' + + exec gosu valkey "$0" "$@" +fi + +# set an appropriate umask (if one isn't set already) +um="$(umask)" +if [ "$um" = '0022' ]; then + umask 0077 +fi + +exec "$@" diff --git a/7.2/debian/Dockerfile b/7.2/debian/Dockerfile new file mode 100644 index 0000000..198fd45 --- /dev/null +++ b/7.2/debian/Dockerfile @@ -0,0 +1,150 @@ +# +# NOTE: THIS DOCKERFILE IS GENERATED VIA "apply-templates.sh" +# +# PLEASE DO NOT EDIT IT DIRECTLY. +# + +FROM debian:bookworm-slim + +# add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added +RUN set -eux; \ + groupadd -r -g 999 valkey; \ + useradd -r -g valkey -u 999 valkey + +# runtime dependencies +RUN set -eux; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ +# add tzdata explicitly for https://github.com/docker-library/valkey/issues/138 (see also https://bugs.debian.org/837060 and related) + tzdata \ + ; \ + rm -rf /var/lib/apt/lists/* + +# grab gosu for easy step-down from root +# https://github.com/tianon/gosu/releases +ENV GOSU_VERSION 1.17 +RUN set -eux; \ + savedAptMark="$(apt-mark showmanual)"; \ + apt-get update; \ + apt-get install -y --no-install-recommends ca-certificates gnupg wget; \ + rm -rf /var/lib/apt/lists/*; \ + arch="$(dpkg --print-architecture | awk -F- '{ print $NF }')"; \ + case "$arch" in \ + 'amd64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64'; sha256='bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3' ;; \ + 'arm64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-arm64'; sha256='c3805a85d17f4454c23d7059bcb97e1ec1af272b90126e79ed002342de08389b' ;; \ + 'armel') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-armel'; sha256='f9969910fa141140438c998cfa02f603bf213b11afd466dcde8fa940e700945d' ;; \ + 'i386') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-i386'; sha256='087dbb8fe479537e64f9c86fa49ff3b41dee1cbd28739a19aaef83dc8186b1ca' ;; \ + 'mips64el') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-mips64el'; sha256='87140029d792595e660be0015341dfa1c02d1181459ae40df9f093e471d75b70' ;; \ + 'ppc64el') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-ppc64el'; sha256='1891acdcfa70046818ab6ed3c52b9d42fa10fbb7b340eb429c8c7849691dbd76' ;; \ + 'riscv64') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-riscv64'; sha256='38a6444b57adce135c42d5a3689f616fc7803ddc7a07ff6f946f2ebc67a26ba6' ;; \ + 's390x') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-s390x'; sha256='69873bab588192f760547ca1f75b27cfcf106e9f7403fee6fd0600bc914979d0' ;; \ + 'armhf') url='https://github.com/tianon/gosu/releases/download/1.17/gosu-armhf'; sha256='e5866286277ff2a2159fb9196fea13e0a59d3f1091ea46ddb985160b94b6841b' ;; \ + *) echo >&2 "error: unsupported gosu architecture: '$arch'"; exit 1 ;; \ + esac; \ + wget -O /usr/local/bin/gosu.asc "$url.asc"; \ + wget -O /usr/local/bin/gosu "$url"; \ + echo "$sha256 */usr/local/bin/gosu" | sha256sum -c -; \ + export GNUPGHOME="$(mktemp -d)"; \ + gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4; \ + gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu; \ + gpgconf --kill all; \ + rm -rf "$GNUPGHOME" /usr/local/bin/gosu.asc; \ + apt-mark auto '.*' > /dev/null; \ + [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \ + apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ + chmod +x /usr/local/bin/gosu; \ + gosu --version; \ + gosu nobody true + +ENV VALKEY_VERSION 7.2.4-rc1 +ENV VALKEY_DOWNLOAD_URL https://github.com/valkey-io/valkey/archive/refs/tags/7.2.4-rc1.tar.gz +ENV VALKEY_DOWNLOAD_SHA cd0a74184f2e6addac458f7b4f7549521e490a4ef51db0eb1dccd1a520de4cb6 + +RUN set -eux; \ + \ + savedAptMark="$(apt-mark showmanual)"; \ + apt-get update; \ + apt-get install -y --no-install-recommends \ + ca-certificates \ + wget \ + \ + dpkg-dev \ + gcc \ + libc6-dev \ + libssl-dev \ + make \ + ; \ + rm -rf /var/lib/apt/lists/*; \ + \ + wget -O valkey.tar.gz "$VALKEY_DOWNLOAD_URL"; \ + echo "$VALKEY_DOWNLOAD_SHA *valkey.tar.gz" | sha256sum -c -; \ + \ + mkdir -p /usr/src/valkey; \ + tar -xzf valkey.tar.gz -C /usr/src/valkey --strip-components=1; \ + rm valkey.tar.gz; \ + \ +# disable Valkey protected mode [1] as it is unnecessary in context of Docker +# (ports are not automatically exposed when running inside Docker, but rather explicitly by specifying -p / -P) + grep -E '^ *createBoolConfig[(]"protected-mode",.*, *1 *,.*[)],$' /usr/src/valkey/src/config.c; \ + sed -ri 's!^( *createBoolConfig[(]"protected-mode",.*, *)1( *,.*[)],)$!\10\2!' /usr/src/valkey/src/config.c; \ + grep -E '^ *createBoolConfig[(]"protected-mode",.*, *0 *,.*[)],$' /usr/src/valkey/src/config.c; \ +# for future reference, we modify this directly in the source instead of just supplying a default configuration flag because apparently "if you specify any argument to valkey-server, [it assumes] you are going to specify everything" +# (more exactly, this makes sure the default behavior of "save on SIGTERM" stays functional by default) + \ +# https://github.com/jemalloc/jemalloc/issues/467 -- we need to patch the "./configure" for the bundled jemalloc to match how Debian compiles, for compatibility +# (also, we do cross-builds, so we need to embed the appropriate "--build=xxx" values to that "./configure" invocation) + gnuArch="$(dpkg-architecture --query DEB_BUILD_GNU_TYPE)"; \ + extraJemallocConfigureFlags="--build=$gnuArch"; \ +# https://salsa.debian.org/debian/jemalloc/-/blob/c0a88c37a551be7d12e4863435365c9a6a51525f/debian/rules#L8-23 + dpkgArch="$(dpkg --print-architecture)"; \ + case "${dpkgArch##*-}" in \ + amd64 | i386 | x32) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=12" ;; \ + *) extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-page=16" ;; \ + esac; \ + extraJemallocConfigureFlags="$extraJemallocConfigureFlags --with-lg-hugepage=21"; \ + grep -F 'cd jemalloc && ./configure ' /usr/src/valkey/deps/Makefile; \ + sed -ri 's!cd jemalloc && ./configure !&'"$extraJemallocConfigureFlags"' !' /usr/src/valkey/deps/Makefile; \ + grep -F "cd jemalloc && ./configure $extraJemallocConfigureFlags " /usr/src/valkey/deps/Makefile; \ + \ + export BUILD_TLS=yes; \ + make -C /usr/src/valkey -j "$(nproc)" all; \ + make -C /usr/src/valkey install; \ + \ + serverMd5="$(md5sum /usr/local/bin/valkey-server | cut -d' ' -f1)"; export serverMd5; \ + find /usr/local/bin/valkey* -maxdepth 0 \ + -type f -not -name valkey-server \ + -exec sh -eux -c ' \ + md5="$(md5sum "$1" | cut -d" " -f1)"; \ + test "$md5" = "$serverMd5"; \ + ' -- '{}' ';' \ + -exec ln -svfT 'valkey-server' '{}' ';' \ + ; \ + \ + rm -r /usr/src/valkey; \ + \ + apt-mark auto '.*' > /dev/null; \ + [ -z "$savedAptMark" ] || apt-mark manual $savedAptMark > /dev/null; \ + find /usr/local -type f -executable -exec ldd '{}' ';' \ + | awk '/=>/ { so = $(NF-1); if (index(so, "/usr/local/") == 1) { next }; gsub("^/(usr/)?", "", so); print so }' \ + | sort -u \ + | xargs -r dpkg-query --search \ + | cut -d: -f1 \ + | sort -u \ + | xargs -r apt-mark manual \ + ; \ + apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false; \ + \ + valkey-cli --version; \ + valkey-server --version; \ + \ + echo '{"spdxVersion":"SPDX-2.3","SPDXID":"SPDXRef-DOCUMENT","name":"valkey-server-sbom","packages":[{"name":"valkey-server","versionInfo":"7.2.4-rc1","SPDXID":"SPDXRef-Package--valkey-server","externalRefs":[{"referenceCategory":"PACKAGE-MANAGER","referenceType":"purl","referenceLocator":"pkg:generic/valkey-server@7.2.4-rc1?os_name=debian&os_version=bookworm"}],"licenseDeclared":"BSD-3-Clause"}]}' > /usr/local/valkey.spdx.json + +RUN mkdir /data && chown valkey:valkey /data +VOLUME /data +WORKDIR /data + +COPY docker-entrypoint.sh /usr/local/bin/ +ENTRYPOINT ["docker-entrypoint.sh"] + +EXPOSE 6379 +CMD ["valkey-server"] diff --git a/7.2/debian/docker-entrypoint.sh b/7.2/debian/docker-entrypoint.sh new file mode 100755 index 0000000..249537b --- /dev/null +++ b/7.2/debian/docker-entrypoint.sh @@ -0,0 +1,22 @@ +#!/bin/sh +set -e + +# first arg is `-f` or `--some-option` +# or first arg is `something.conf` +if [ "${1#-}" != "$1" ] || [ "${1%.conf}" != "$1" ]; then + set -- valkey-server "$@" +fi + +# allow the container to be started with `--user` +if [ "$1" = 'valkey-server' -a "$(id -u)" = '0' ]; then + find . \! -user valkey -exec chown valkey '{}' + + exec gosu valkey "$0" "$@" +fi + +# set an appropriate umask (if one isn't set already) +um="$(umask)" +if [ "$um" = '0022' ]; then + umask 0077 +fi + +exec "$@" diff --git a/dockerhub-description.md b/dockerhub-description.md index c3114dc..3afb755 100644 --- a/dockerhub-description.md +++ b/dockerhub-description.md @@ -7,8 +7,10 @@ Please open an Issue stating your question on [the Valkey Community](https://github.com/valkey-io/valkey-container/issues). # Supported tags and respective `Dockerfile` links -- [`unstable`](https://github.com/valkey-io/valkey-container/blob/master/unstable/debian/Dockerfile) -- [`unstable-alpine`](https://github.com/valkey-io/valkey-container/blob/master/unstable/alpine/Dockerfile) +- [`unstable`, `unstable-bookworm`](https://github.com/valkey-io/valkey-container/blob/master/unstable/debian/Dockerfile) +- [`unstable-alpine`, `unstable-alpine3.19`](https://github.com/valkey-io/valkey-container/blob/master/unstable/alpine/Dockerfile) +- [`7.2`, `7.2.4-rc1`, `7.2.4-rc1-bookworm`, `7.2-bookworm`](https://github.com/valkey-io/valkey-container/blob/master/7.2/debian/Dockerfile) +- [`7.2-alpine`, `7.2.4-rc1-alpine`, `7.2.4-rc1-alpine3.19`, `7.2-alpine3.19`](https://github.com/valkey-io/valkey-container/blob/master/7.2/debian/Dockerfile) What is [Valkey](https://github.com/valkey-io/valkey)? -------------- diff --git a/versions.json b/versions.json index 16389c6..296f851 100644 --- a/versions.json +++ b/versions.json @@ -1,4 +1,60 @@ { + "7.2": { + "version": "7.2.4-rc1", + "url": "https://github.com/valkey-io/valkey/archive/refs/tags/7.2.4-rc1.tar.gz", + "sha256": "cd0a74184f2e6addac458f7b4f7549521e490a4ef51db0eb1dccd1a520de4cb6", + "debian": { + "version": "bookworm" + }, + "alpine": { + "version": "3.19" + }, + "gosu": { + "version": "1.17", + "arches": { + "amd64": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-amd64", + "sha256": "bbc4136d03ab138b1ad66fa4fc051bafc6cc7ffae632b069a53657279a450de3" + }, + "arm64v8": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-arm64", + "sha256": "c3805a85d17f4454c23d7059bcb97e1ec1af272b90126e79ed002342de08389b" + }, + "arm32v5": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-armel", + "sha256": "f9969910fa141140438c998cfa02f603bf213b11afd466dcde8fa940e700945d" + }, + "arm32v6": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-armhf", + "sha256": "e5866286277ff2a2159fb9196fea13e0a59d3f1091ea46ddb985160b94b6841b" + }, + "i386": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-i386", + "sha256": "087dbb8fe479537e64f9c86fa49ff3b41dee1cbd28739a19aaef83dc8186b1ca" + }, + "mips64le": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-mips64el", + "sha256": "87140029d792595e660be0015341dfa1c02d1181459ae40df9f093e471d75b70" + }, + "ppc64le": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-ppc64el", + "sha256": "1891acdcfa70046818ab6ed3c52b9d42fa10fbb7b340eb429c8c7849691dbd76" + }, + "riscv64": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-riscv64", + "sha256": "38a6444b57adce135c42d5a3689f616fc7803ddc7a07ff6f946f2ebc67a26ba6" + }, + "s390x": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-s390x", + "sha256": "69873bab588192f760547ca1f75b27cfcf106e9f7403fee6fd0600bc914979d0" + }, + "arm32v7": { + "url": "https://github.com/tianon/gosu/releases/download/1.17/gosu-armhf", + "sha256": "e5866286277ff2a2159fb9196fea13e0a59d3f1091ea46ddb985160b94b6841b" + } + } + } + }, "unstable": { "version": "unstable", "url": "https://github.com/valkey-io/valkey/archive/unstable.tar.gz", diff --git a/versions.sh b/versions.sh index c231863..53df7c0 100755 --- a/versions.sh +++ b/versions.sh @@ -137,9 +137,6 @@ for version in "${versions[@]}"; do | ( startswith(env.rcVersion + ".") or startswith(env.rcVersion + "-") - ) and ( - index("-") - | if env.version == env.rcVersion then not else . end ) ) )[-1]