mirror of
https://github.com/bitnami/containers.git
synced 2026-02-16 02:07:25 +08:00
[bitnami/redis] Release 6.2.14-debian-12-r16 (#65251)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
@@ -7,10 +7,12 @@ ARG TARGETARCH
|
||||
|
||||
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
|
||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||
org.opencontainers.image.created="2024-03-31T19:45:34Z" \
|
||||
org.opencontainers.image.created="2024-04-18T16:32:12Z" \
|
||||
org.opencontainers.image.description="Application packaged by VMware, Inc" \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/redis/README.md" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.ref.name="6.2.14-debian-12-r15" \
|
||||
org.opencontainers.image.ref.name="6.2.14-debian-12-r16" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/redis" \
|
||||
org.opencontainers.image.title="redis" \
|
||||
org.opencontainers.image.vendor="VMware, Inc." \
|
||||
org.opencontainers.image.version="6.2.14"
|
||||
@@ -26,8 +28,8 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
|
||||
RUN install_packages ca-certificates curl libgomp1 libssl3 procps
|
||||
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
|
||||
COMPONENTS=( \
|
||||
"wait-for-port-1.0.7-10-linux-${OS_ARCH}-debian-12" \
|
||||
"redis-6.2.14-3-linux-${OS_ARCH}-debian-12" \
|
||||
"wait-for-port-1.0.7-11-linux-${OS_ARCH}-debian-12" \
|
||||
"redis-6.2.14-4-linux-${OS_ARCH}-debian-12" \
|
||||
) ; \
|
||||
for COMPONENT in "${COMPONENTS[@]}"; do \
|
||||
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
|
||||
|
||||
@@ -3,12 +3,12 @@
|
||||
"arch": "amd64",
|
||||
"distro": "debian-12",
|
||||
"type": "NAMI",
|
||||
"version": "6.2.14-3"
|
||||
"version": "6.2.14-4"
|
||||
},
|
||||
"wait-for-port": {
|
||||
"arch": "amd64",
|
||||
"distro": "debian-12",
|
||||
"type": "NAMI",
|
||||
"version": "1.0.7-10"
|
||||
"version": "1.0.7-11"
|
||||
}
|
||||
}
|
||||
@@ -180,7 +180,7 @@ docker-compose up -d
|
||||
| `REDIS_DATABASE` | Default Redis database | `redis` |
|
||||
| `REDIS_AOF_ENABLED` | Enable AOF | `yes` |
|
||||
| `REDIS_RDB_POLICY` | Enable RDB policy persitence | `nil` |
|
||||
| `REDIS_RDB_POLICY_DISABLED` | Allows to enable RDP policy persistence | `no` |
|
||||
| `REDIS_RDB_POLICY_DISABLED` | Allows to enable RDB policy persistence | `no` |
|
||||
| `REDIS_MASTER_HOST` | Redis master host (used by slaves) | `nil` |
|
||||
| `REDIS_MASTER_PORT_NUMBER` | Redis master host port (used by slaves) | `6379` |
|
||||
| `REDIS_PORT_NUMBER` | Redis port number | `$REDIS_DEFAULT_PORT_NUMBER` |
|
||||
@@ -585,6 +585,35 @@ services:
|
||||
...
|
||||
```
|
||||
|
||||
### Enable Redis(R) RDB persistence
|
||||
|
||||
When the value of `REDIS_RDB_POLICY_DISABLED` is `no` (default value) the Redis(R) default persistence strategy will be used. If you want to modify the default strategy, you can configure it through the `REDIS_RDB_POLICY` parameter. Here is a demonstration of modifying the default persistence strategy
|
||||
|
||||
1. Using `docker run`
|
||||
|
||||
```console
|
||||
$ docker run --name redis \
|
||||
-v /path/to/redis-data-persistence:/bitnami/redis/data \
|
||||
-e ALLOW_EMPTY_PASSWORD=yes \
|
||||
-e REDIS_RDB_POLICY_DISABLED=no
|
||||
-e REDIS_RDB_POLICY="900#1 600#5 300#10 120#50 60#1000 30#10000"
|
||||
bitnami/redis:latest
|
||||
```
|
||||
|
||||
2. Modifying the `docker-compose.yml` file present in this repository:
|
||||
|
||||
```yaml
|
||||
redis:
|
||||
...
|
||||
environment:
|
||||
...
|
||||
- REDIS_TLS_ENABLED=yes
|
||||
- REDIS_RDB_POLICY_DISABLED=no
|
||||
- REDIS_RDB_POLICY="900#1 600#5 300#10 120#50 60#1000 30#10000"
|
||||
...
|
||||
...
|
||||
```
|
||||
|
||||
## Logging
|
||||
|
||||
The Bitnami Redis(R) Docker image sends the container logs to the `stdout`. To view the logs:
|
||||
|
||||
Reference in New Issue
Block a user