mirror of
https://github.com/bitnami/containers.git
synced 2026-03-16 06:49:12 +08:00
7.0.0-debian-11-r2 release
This commit is contained in:
committed by
Bitnami Containers
parent
91ad0e0fb6
commit
7ee8c7bdd0
@@ -37,7 +37,7 @@ redis_conf_set() {
|
||||
if grep -q "^\s*$key .*" "$REDIS_SENTINEL_CONF_FILE"; then
|
||||
replace_in_file "$REDIS_SENTINEL_CONF_FILE" "^\s*${key} .*" "${key} ${value}" false
|
||||
else
|
||||
printf '\n%s %s' "$key" "$value" >> "$REDIS_SENTINEL_CONF_FILE"
|
||||
printf '\n%s %s' "$key" "$value" >>"$REDIS_SENTINEL_CONF_FILE"
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -131,19 +131,19 @@ redis_version() {
|
||||
# Parse optional CLI flags
|
||||
if [[ "$#" -gt 0 ]]; then
|
||||
case "$1" in
|
||||
--major)
|
||||
version="1"
|
||||
;;
|
||||
--minor)
|
||||
version="2"
|
||||
;;
|
||||
--patch)
|
||||
version="3"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid command line flag ${1}" >&2
|
||||
return 1
|
||||
;;
|
||||
--major)
|
||||
version="1"
|
||||
;;
|
||||
--minor)
|
||||
version="2"
|
||||
;;
|
||||
--patch)
|
||||
version="3"
|
||||
;;
|
||||
*)
|
||||
echo "Invalid command line flag ${1}" >&2
|
||||
return 1
|
||||
;;
|
||||
esac
|
||||
complete_version="false"
|
||||
fi
|
||||
@@ -225,13 +225,15 @@ redis_initialize() {
|
||||
redis_conf_set "sentinel resolve-hostnames" "${REDIS_SENTINEL_RESOLVE_HOSTNAMES}"
|
||||
redis_conf_set "sentinel announce-hostnames" "${REDIS_SENTINEL_ANNOUNCE_HOSTNAMES}"
|
||||
fi
|
||||
# This directive is only available in Redis 7
|
||||
[[ $(redis_version --major) -ge 7 ]] && redis_conf_set "SENTINEL master-reboot-down-after-period" "${REDIS_MASTER_SET} ${REDIS_SENTINEL_MASTER_REBOOT_DOWN_AFTER_PERIOD}"
|
||||
|
||||
# Sentinel Configuration (maybe overwritten by more specific init blocks like TLS configuration)
|
||||
redis_conf_set port "$REDIS_SENTINEL_PORT_NUMBER"
|
||||
|
||||
# TLS configuration
|
||||
if is_boolean_yes "$REDIS_SENTINEL_TLS_ENABLED"; then
|
||||
if ([[ "$REDIS_SENTINEL_PORT_NUMBER" == "26379" ]] || [[ "$REDIS_SENTINEL_PORT_NUMBER" == "0" ]]) && [[ "$REDIS_SENTINEL_TLS_PORT_NUMBER" == "26379" ]]; then
|
||||
if { [[ "$REDIS_SENTINEL_PORT_NUMBER" == "26379" ]] || [[ "$REDIS_SENTINEL_PORT_NUMBER" == "0" ]]; } && [[ "$REDIS_SENTINEL_TLS_PORT_NUMBER" == "26379" ]]; then
|
||||
# If both ports are set to default values, enable TLS traffic only
|
||||
redis_conf_set port 0
|
||||
redis_conf_set tls-port "$REDIS_SENTINEL_TLS_PORT_NUMBER"
|
||||
|
||||
@@ -32,6 +32,7 @@ redis_sentinel_env_vars=(
|
||||
REDIS_SENTINEL_QUORUM
|
||||
REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS
|
||||
REDIS_SENTINEL_FAILOVER_TIMEOUT
|
||||
REDIS_SENTINEL_MASTER_REBOOT_DOWN_AFTER_PERIOD
|
||||
REDIS_SENTINEL_RESOLVE_HOSTNAMES
|
||||
REDIS_SENTINEL_ANNOUNCE_HOSTNAMES
|
||||
ALLOW_EMPTY_PASSWORD
|
||||
@@ -92,6 +93,7 @@ export REDIS_SENTINEL_PORT_NUMBER="${REDIS_SENTINEL_PORT_NUMBER:-$REDIS_SENTINEL
|
||||
export REDIS_SENTINEL_QUORUM="${REDIS_SENTINEL_QUORUM:-2}"
|
||||
export REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS="${REDIS_SENTINEL_DOWN_AFTER_MILLISECONDS:-60000}"
|
||||
export REDIS_SENTINEL_FAILOVER_TIMEOUT="${REDIS_SENTINEL_FAILOVER_TIMEOUT:-180000}"
|
||||
export REDIS_SENTINEL_MASTER_REBOOT_DOWN_AFTER_PERIOD="${REDIS_SENTINEL_MASTER_REBOOT_DOWN_AFTER_PERIOD:-0}"
|
||||
export REDIS_SENTINEL_RESOLVE_HOSTNAMES="${REDIS_SENTINEL_RESOLVE_HOSTNAMES:-yes}"
|
||||
export REDIS_SENTINEL_ANNOUNCE_HOSTNAMES="${REDIS_SENTINEL_ANNOUNCE_HOSTNAMES:-no}"
|
||||
export ALLOW_EMPTY_PASSWORD="${ALLOW_EMPTY_PASSWORD:-no}"
|
||||
|
||||
@@ -30,7 +30,7 @@ $ docker-compose up -d
|
||||
* Bitnami containers, virtual machines and cloud images use the same components and configuration approach - making it easy to switch between formats based on your project needs.
|
||||
* All our images are based on [minideb](https://github.com/bitnami/minideb) a minimalist Debian based container image which gives you a small base container image and the familiarity of a leading Linux distribution.
|
||||
* All Bitnami images available in Docker Hub are signed with [Docker Content Trust (DCT)](https://docs.docker.com/engine/security/trust/content_trust/). You can use `DOCKER_CONTENT_TRUST=1` to verify the integrity of the images.
|
||||
* Bitnami container images are released daily with the latest distribution packages available.
|
||||
* Bitnami container images are released on a regular basis with the latest distribution packages available.
|
||||
|
||||
## Why use a non-root container?
|
||||
|
||||
@@ -41,7 +41,7 @@ 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/tutorials/understand-rolling-tags-containers/).
|
||||
|
||||
|
||||
* [`7.0`, `7.0-debian-11`, `7.0.0`, `7.0.0-debian-11-r1`, `latest` (7.0/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis-sentinel/blob/7.0.0-debian-11-r1/7.0/debian-11/Dockerfile)
|
||||
* [`7.0`, `7.0-debian-11`, `7.0.0`, `7.0.0-debian-11-r2`, `latest` (7.0/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis-sentinel/blob/7.0.0-debian-11-r2/7.0/debian-11/Dockerfile)
|
||||
* [`6.2`, `6.2-debian-11`, `6.2.7`, `6.2.7-debian-11-r2` (6.2/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis-sentinel/blob/6.2.7-debian-11-r2/6.2/debian-11/Dockerfile)
|
||||
* [`6.0`, `6.0-debian-11`, `6.0.16`, `6.0.16-debian-11-r1` (6.0/debian-11/Dockerfile)](https://github.com/bitnami/bitnami-docker-redis-sentinel/blob/6.0.16-debian-11-r1/6.0/debian-11/Dockerfile)
|
||||
|
||||
|
||||
@@ -2,11 +2,11 @@ version: '2'
|
||||
|
||||
services:
|
||||
redis-sentinel:
|
||||
image: docker.io/bitnami/redis-sentinel:6.2
|
||||
image: docker.io/bitnami/redis-sentinel:7.0
|
||||
volumes:
|
||||
- redis-sentinel_data:/bitnami
|
||||
redis:
|
||||
image: docker.io/bitnami/redis:6.2
|
||||
image: docker.io/bitnami/redis:7.0
|
||||
environment:
|
||||
# ALLOW_EMPTY_PASSWORD is recommended only for development.
|
||||
- ALLOW_EMPTY_PASSWORD=yes
|
||||
|
||||
Reference in New Issue
Block a user