mirror of
https://github.com/bitnami/containers.git
synced 2026-10-09 17:48:18 +02:00
[bitnami/redis-sentinel] Release 8.10.0-debian-12-r2 (#96153)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
@@ -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-08-05T15:24:52Z" \
|
||||
org.opencontainers.image.created="2026-08-07T15:14:00Z" \
|
||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/redis-sentinel/README.md" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/redis-sentinel" \
|
||||
@@ -50,7 +50,7 @@ COPY rootfs /
|
||||
RUN /opt/bitnami/scripts/redis-sentinel/postunpack.sh
|
||||
ENV APP_VERSION="8.10.0" \
|
||||
BITNAMI_APP_NAME="redis-sentinel" \
|
||||
IMAGE_REVISION="1"
|
||||
IMAGE_REVISION="2"
|
||||
|
||||
EXPOSE 26379
|
||||
|
||||
|
||||
+22
-4
@@ -31,10 +31,28 @@ redis_conf_set() {
|
||||
local value="${2:-}"
|
||||
|
||||
# Sanitize inputs
|
||||
value="${value//\\/\\\\}"
|
||||
value="${value//&/\\&}"
|
||||
value="${value//\?/\\?}"
|
||||
[[ "$value" = "" ]] && value="\"$value\""
|
||||
value="${value//[$'\001'-$'\037'$'\177']}"
|
||||
|
||||
case "$key" in
|
||||
requirepass)
|
||||
# Holds a single opaque string value (password) that may contain spaces, '#', quotes
|
||||
# or backslashes. Format as a double-quoted Redis config string so the parser handles
|
||||
# it safely. Other keys (e.g. "sentinel auth-pass", "sentinel monitor") pack multiple
|
||||
# space-separated tokens into $value and must NOT be quoted as a whole.
|
||||
value="${value//\\/\\\\}"
|
||||
value="${value//\"/\\\"}"
|
||||
value="\"${value}\""
|
||||
# Escape for sed replacement string in replace_in_file (\ -> \\, & -> \&)
|
||||
value="${value//\\/\\\\}"
|
||||
value="${value//&/\\&}"
|
||||
;;
|
||||
*)
|
||||
value="${value//\\/\\\\}"
|
||||
value="${value//&/\\&}"
|
||||
value="${value//\?/\\?}"
|
||||
[[ "$value" = "" ]] && value="\"\""
|
||||
;;
|
||||
esac
|
||||
|
||||
if grep -q "^\s*$key .*" "$REDIS_SENTINEL_CONF_FILE"; then
|
||||
replace_in_file "$REDIS_SENTINEL_CONF_FILE" "^\s*${key} .*" "${key} ${value}" false
|
||||
|
||||
Reference in New Issue
Block a user