diff --git a/bitnami/redis/5.0/ol-7/Dockerfile b/bitnami/redis/5.0/ol-7/Dockerfile index 11c8f92db0ca..a42d28a2585f 100644 --- a/bitnami/redis/5.0/ol-7/Dockerfile +++ b/bitnami/redis/5.0/ol-7/Dockerfile @@ -15,14 +15,16 @@ COPY rootfs / RUN /prepare.sh ENV ALLOW_EMPTY_PASSWORD="no" \ BITNAMI_APP_NAME="redis" \ - BITNAMI_IMAGE_VERSION="5.0.3-ol-7-r34" \ + BITNAMI_IMAGE_VERSION="5.0.3-ol-7-r35" \ NAMI_PREFIX="/.nami" \ PATH="/opt/bitnami/redis/bin:$PATH" \ REDIS_DISABLE_COMMANDS="" \ REDIS_MASTER_HOST="" \ REDIS_MASTER_PASSWORD="" \ + REDIS_MASTER_PASSWORD_FILE="/opt/bitnami/redis/secrets/redis-master-password" \ REDIS_MASTER_PORT_NUMBER="6379" \ REDIS_PASSWORD="" \ + REDIS_PASSWORD_FILE="/opt/bitnami/redis/secrets/redis-password" \ REDIS_REPLICATION_MODE="" EXPOSE 6379 diff --git a/bitnami/redis/5.0/ol-7/rootfs/redis-inputs.json b/bitnami/redis/5.0/ol-7/rootfs/redis-inputs.json index 4f14fcea40ca..9c39c1e9ab8b 100644 --- a/bitnami/redis/5.0/ol-7/rootfs/redis-inputs.json +++ b/bitnami/redis/5.0/ol-7/rootfs/redis-inputs.json @@ -3,7 +3,9 @@ "disableCommands": "{{$global.env.REDIS_DISABLE_COMMANDS}}", "masterHost": "{{$global.env.REDIS_MASTER_HOST}}", "masterPassword": "{{$global.env.REDIS_MASTER_PASSWORD}}", + "masterPasswordFileLocation": "{{$global.env.REDIS_MASTER_PASSWORD_FILE}}", "masterPort": "{{$global.env.REDIS_MASTER_PORT_NUMBER}}", "password": "{{$global.env.REDIS_PASSWORD}}", + "passwordFileLocation": "{{$global.env.REDIS_PASSWORD_FILE}}", "replicationMode": "{{$global.env.REDIS_REPLICATION_MODE}}" } \ No newline at end of file diff --git a/bitnami/redis/README.md b/bitnami/redis/README.md index 6e74d3b994d7..98d7cd2ab5e6 100644 --- a/bitnami/redis/README.md +++ b/bitnami/redis/README.md @@ -45,8 +45,8 @@ Non-root container images add an extra layer of security and are generally recom Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/). -* [`5.0-ol-7`, `5.0.3-ol-7-r34` (5.0/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis/blob/5.0.3-ol-7-r34/5.0/ol-7/Dockerfile) -* [`5.0-debian-9`, `5.0.3-debian-9-r25`, `5.0`, `5.0.3`, `5.0.3-r25` (5.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis/blob/5.0.3-debian-9-r25/5.0/debian-9/Dockerfile) +* [`5.0-ol-7`, `5.0.3-ol-7-r35` (5.0/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis/blob/5.0.3-ol-7-r35/5.0/ol-7/Dockerfile) +* [`5.0-debian-9`, `5.0.3-debian-9-r26`, `5.0`, `5.0.3`, `5.0.3-r26` (5.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis/blob/5.0.3-debian-9-r26/5.0/debian-9/Dockerfile) * [`4.0-ol-7`, `4.0.12-ol-7-r34` (4.0/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis/blob/4.0.12-ol-7-r34/4.0/ol-7/Dockerfile) * [`4.0-debian-9`, `4.0.12-debian-9-r27`, `4.0`, `4.0.12`, `4.0.12-r27`, `latest` (4.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis/blob/4.0.12-debian-9-r27/4.0/debian-9/Dockerfile) @@ -241,7 +241,7 @@ Refer to the [Redis documentation](https://redis.io/topics/config#passing-argume ## Setting the server password on first run -Passing the `REDIS_PASSWORD` environment variable when running the image for the first time will set the Redis server password to the value of `REDIS_PASSWORD`. +Passing the `REDIS_PASSWORD` environment variable when running the image for the first time will set the Redis server password to the value of `REDIS_PASSWORD` (or the content of the file specified in `REDIS_PASSWORD_FILE`). ```bash $ docker run --name redis -e REDIS_PASSWORD=password123 bitnami/redis:latest @@ -292,7 +292,7 @@ A [replication](http://redis.io/topics/replication) cluster can easily be setup - `REDIS_REPLICATION_MODE`: The replication mode. Possible values `master`/`slave`. No defaults. - `REDIS_MASTER_HOST`: Hostname/IP of replication master (replica node parameter). No defaults. - `REDIS_MASTER_PORT_NUMBER`: Server port of the replication master (replica node parameter). Defaults to `6379`. - - `REDIS_MASTER_PASSWORD`: Password to authenticate with the master (replica node parameter). No defaults. + - `REDIS_MASTER_PASSWORD`: Password to authenticate with the master (replica node parameter). No defaults. As an alternative, you can mount a file with the password and set the `REDIS_MASTER_PASSWORD_FILE` variable. In a replication cluster you can have one master and zero or more replicas. When replication is enabled the master node is in read-write mode, while the replicas are in read-only mode. For best performance its advisable to limit the reads to the replicas.