[bitnami/redis-cluster] Release 8.8.0-debian-12-r5 (#95410)

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Bitnami Bot
2026-07-10 19:36:18 +02:00
committed by GitHub
parent 6fe8778f6f
commit 8c9ac4fcb4
12 changed files with 39 additions and 17 deletions
@@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="https://downloads.bitnami.com/files/stacksmith"
ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
org.opencontainers.image.created="2026-06-11T04:04:34Z" \
org.opencontainers.image.created="2026-07-10T17:17:42Z" \
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/redis-cluster/README.md" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/redis-cluster" \
@@ -28,8 +28,8 @@ RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
DOWNLOADS_URL=${SECRET_DOWNLOADS_URL:-${DOWNLOADS_URL}} ; \
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
COMPONENTS=( \
"wait-for-port-1.0.10-11-linux-${OS_ARCH}-debian-12" \
"redis-8.8.0-2-linux-${OS_ARCH}-debian-12" \
"wait-for-port-1.0.10-14-linux-${OS_ARCH}-debian-12" \
"redis-8.8.0-3-linux-${OS_ARCH}-debian-12" \
) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
@@ -50,7 +50,7 @@ COPY rootfs /
RUN /opt/bitnami/scripts/redis-cluster/postunpack.sh
ENV APP_VERSION="8.8.0" \
BITNAMI_APP_NAME="redis-cluster" \
IMAGE_REVISION="4" \
IMAGE_REVISION="5" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/redis/bin:$PATH"
EXPOSE 6379
@@ -1 +0,0 @@
b7f81750367961a0cb04c6f2d508e4b995f3384d7ef2d298f3129b1f877d653c redis-8.8.0-2-linux-amd64-debian-12.tar.gz
@@ -1 +0,0 @@
f83b423a65640856bda9d981813fc878f8a06a2ef26c61bb07b50a4dac0b1d95 redis-8.8.0-2-linux-arm64-debian-12.tar.gz
@@ -0,0 +1 @@
611995d9243548a13b9d9a47b250aef698316541c42301b0a1211674e61c61aa redis-8.8.0-3-linux-amd64-debian-12.tar.gz
@@ -0,0 +1 @@
ef1ac433b372748a8aa826bfdd2872c6f52a4bea34d4cd2283535f4957ddf4bc redis-8.8.0-3-linux-arm64-debian-12.tar.gz
@@ -1 +0,0 @@
b8a9cd842e95ae16de5bbf157cc7e246c79a24d3b5b626bcce32f6904a895383 wait-for-port-1.0.10-11-linux-amd64-debian-12.tar.gz
@@ -1 +0,0 @@
ae2e822f8c673eb66a2cadbc6dc5fe9c8c0791564751e453a04a416ab9bd6f61 wait-for-port-1.0.10-11-linux-arm64-debian-12.tar.gz
@@ -0,0 +1 @@
4ea516dd6f57b3b33883e810ddb8b4dafa310948100434fd5a6272364d44329f wait-for-port-1.0.10-14-linux-amd64-debian-12.tar.gz
@@ -0,0 +1 @@
63a1be9dccbce0765fdaa60e122d8a683a72f28bcc418e3a4b4121174f3ecf4d wait-for-port-1.0.10-14-linux-arm64-debian-12.tar.gz
@@ -39,7 +39,7 @@ persist_app() {
fi
pushd "$install_dir" >/dev/null || exit
local file_to_persist_relative file_to_persist_destination file_to_persist_destination_folder
local -r tmp_file="/tmp/perms.acl"
local -r acl_file="$(mktemp "${TMPDIR:-/tmp}"/acl.XXXXXXXXXX)"
for file_to_persist in "${files_to_persist[@]}"; do
if [[ ! -f "$file_to_persist" && ! -d "$file_to_persist" ]]; then
error "Cannot persist '${file_to_persist}' because it does not exist"
@@ -50,22 +50,22 @@ persist_app() {
file_to_persist_destination_folder="$(dirname "$file_to_persist_destination")"
# Get original permissions for existing files, which will be applied later
# Exclude the root directory with 'sed', to avoid issues when copying the entirety of it to a volume
getfacl -R "$file_to_persist_relative" | sed -E '/# file: (\..+|[^.])/,$!d' > "$tmp_file"
getfacl -R "$file_to_persist_relative" | sed -E '/# file: (\..+|[^.])/,$!d' > "$acl_file"
# Copy directories to the volume
ensure_dir_exists "$file_to_persist_destination_folder"
cp -Lr --preserve=links "$file_to_persist_relative" "$file_to_persist_destination_folder"
# Restore permissions
pushd "$persist_dir" >/dev/null || exit
if am_i_root; then
setfacl --restore="$tmp_file"
setfacl --restore="$acl_file"
else
# When running as non-root, don't change ownership
setfacl --restore=<(grep -E -v '^# (owner|group):' "$tmp_file")
setfacl --restore=<(grep -E -v '^# (owner|group):' "$acl_file")
fi
popd >/dev/null || exit
done
popd >/dev/null || exit
rm -f "$tmp_file"
rm -f "$acl_file"
# Install the persisted files into the installation directory, via symlinks
restore_persisted_app "$@"
}
@@ -424,3 +424,23 @@ EOF
WantedBy=bitnami.service
EOF
}
########################
# Register a SIGTERM handler that forwards the signal to all child processes.
# Should be called at the start of run.sh, before launching any background processes.
# Globals:
# None
# Arguments:
# None
# Returns:
# None
#########################
service_register_term_forwarder() {
_service_forward_term() {
warn "Caught signal SIGTERM, passing it to child processes..."
pgrep -P $$ | xargs kill -TERM 2>/dev/null
wait
exit $?
}
trap _service_forward_term TERM
}
@@ -54,9 +54,9 @@ redis_conf_set() {
value="${value//\\/\\\\}"
value="${value//&/\\&}"
value="${value//\?/\\?}"
# 2. \000-\037 strips all ASCII control characters (0-31)
# 2. \001-\037 strips all ASCII control characters (1-31), \000 is the NUL character (0) that Bash cannot store
# 3. \177 strips DEL (delete) character (127)
value="${value//[$'\000'-$'\037'$'\177']}"
value="${value//[$'\001'-$'\037'$'\177']}"
# 4. If the value is empty, set it to an empty string
[[ "$value" = "" ]] && value="\"$value\""
@@ -409,8 +409,10 @@ redis_configure_default() {
chmod 640 "${REDIS_BASE_DIR}/etc/redis.conf"
else
info "Setting Redis config file"
# We try to enforce strict permissions, but we don't fail if it's not possible
chmod 640 "${REDIS_BASE_DIR}/etc/redis.conf" || true
# Try to enforce strict permissions when we own the file or are root
if am_i_root || [[ -O "${REDIS_BASE_DIR}/etc/redis.conf" ]]; then
chmod 640 "${REDIS_BASE_DIR}/etc/redis.conf"
fi
if is_boolean_yes "$ALLOW_EMPTY_PASSWORD"; then
# Allow remote connections without password
redis_conf_set protected-mode no