diff --git a/bitnami/redis-cluster/6.2/debian-11/Dockerfile b/bitnami/redis-cluster/6.2/debian-11/Dockerfile index 07c26a4720a7..5e640db6ec6b 100644 --- a/bitnami/redis-cluster/6.2/debian-11/Dockerfile +++ b/bitnami/redis-cluster/6.2/debian-11/Dockerfile @@ -7,10 +7,10 @@ ARG TARGETARCH LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \ org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ - org.opencontainers.image.created="2023-08-05T18:39:30Z" \ + org.opencontainers.image.created="2023-08-07T22:00:54Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="6.2.13-debian-11-r23" \ + org.opencontainers.image.ref.name="6.2.13-debian-11-r25" \ org.opencontainers.image.title="redis-cluster" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="6.2.13" diff --git a/bitnami/redis-cluster/6.2/debian-11/rootfs/opt/bitnami/scripts/libredis.sh b/bitnami/redis-cluster/6.2/debian-11/rootfs/opt/bitnami/scripts/libredis.sh index 09ad07460a17..caa469e9b164 100644 --- a/bitnami/redis-cluster/6.2/debian-11/rootfs/opt/bitnami/scripts/libredis.sh +++ b/bitnami/redis-cluster/6.2/debian-11/rootfs/opt/bitnami/scripts/libredis.sh @@ -57,7 +57,7 @@ redis_conf_set() { [[ "$value" = "" ]] && value="\"$value\"" # Determine whether to enable the configuration for RDB persistence, if yes, do not enable the replacement operation - if [ "${key}" == "save" ]; then + if [ "${key}" == "save" ];then echo "${key} ${value}" >> "${REDIS_BASE_DIR}/etc/redis.conf" else replace_in_file "${REDIS_BASE_DIR}/etc/redis.conf" "^#*\s*${key} .*" "${key} ${value}" false @@ -408,14 +408,12 @@ redis_configure_default() { redis_conf_set appendonly "${REDIS_AOF_ENABLED}" #The value stored in $i here is the number of seconds and times of save rules in redis rdb mode - if is_empty_value "$REDIS_RDB_POLICY"; then - if is_boolean_yes "$REDIS_RDB_POLICY_DISABLED"; then - redis_conf_set save "" - fi + if [ -z "${REDIS_RDB_POLICY}" ];then + redis_conf_set save "" else - for i in ${REDIS_RDB_POLICY}; do - redis_conf_set save "${i//#/ }" - done + for i in ${REDIS_RDB_POLICY};do + redis_conf_set save "${i//#/ }" + done fi redis_conf_set port "$REDIS_PORT_NUMBER" diff --git a/bitnami/redis-cluster/README.md b/bitnami/redis-cluster/README.md index 9fa258ec213e..36b3177b05b3 100644 --- a/bitnami/redis-cluster/README.md +++ b/bitnami/redis-cluster/README.md @@ -200,6 +200,7 @@ The following env vars are supported for this container: | `REDIS_IO_THREADS` | Number of threads to implement multithreading operations. Defaults to `1`. | | `REDIS_IO_THREADS_DO_READS` | Enables multithreading for read operations. Defaults to `false`. | | `REDIS_RDB_POLICY` | Set this variable to enable RDB persistent storage RDB data synchronization strategy configuration example `900#1 300#10 60#1000` Defaults to disable RDB persistent storage. | +| `REDIS_RDB_POLICY_DISABLED` | If set to `yes` the container will skip the configuration of RDB policy ('save' setting) and rely on Redis(R) default. If `REDIS_RDB_POLICY` is provided, this will be ignored. Defaults to `no`. | Once all the Redis(R) nodes are running you need to execute command like the following to initiate the cluster: