File tree Expand file tree Collapse file tree
bitnami/valkey-cluster/9.1/debian-12
prebuildfs/opt/bitnami/scripts
rootfs/opt/bitnami/scripts/valkey-cluster Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
77ARG TARGETARCH
88
99LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
10- org.opencontainers.image.created="2026-06-05T11:43:43Z " \
10+ org.opencontainers.image.created="2026-06-05T16:02:00Z " \
1111 org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
1212 org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/valkey-cluster/README.md" \
1313 org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/valkey-cluster" \
@@ -50,7 +50,7 @@ COPY rootfs /
5050RUN /opt/bitnami/scripts/valkey-cluster/postunpack.sh
5151ENV APP_VERSION="9.1.0" \
5252 BITNAMI_APP_NAME="valkey-cluster" \
53- IMAGE_REVISION="4 " \
53+ IMAGE_REVISION="5 " \
5454 PATH="/opt/bitnami/common/bin:/opt/bitnami/valkey/bin:$PATH"
5555
5656EXPOSE 6379
Original file line number Diff line number Diff line change @@ -49,3 +49,36 @@ get_sematic_version () {
4949 fi
5050 fi
5151}
52+
53+ # #######################
54+ # Compares two semantic versions
55+ # Arguments:
56+ # $1 - version1: first version to compare
57+ # $2 - version2: second version to compare
58+ # Returns:
59+ # -1 if version1 is less than version2
60+ # 0 if version1 is equal to version2
61+ # 1 if version1 is greater than version2
62+ # ########################
63+ compare_semantic_versions () {
64+ local version1=" ${1:? version1 is required} "
65+ local version2=" ${2:? version2 is required} "
66+ local major1 major2 minor1 minor2 patch1 patch2
67+
68+ major1=" $( get_sematic_version " $version1 " 1) "
69+ major2=" $( get_sematic_version " $version2 " 1) "
70+ minor1=" $( get_sematic_version " $version1 " 2) "
71+ minor2=" $( get_sematic_version " $version2 " 2) "
72+ patch1=" $( get_sematic_version " $version1 " 3) "
73+ patch2=" $( get_sematic_version " $version2 " 3) "
74+
75+ if [[ " $major1 " -eq " $major2 " ]] && [[ " $minor1 " -eq " $minor2 " ]] && [[ " $patch1 " -eq " $patch2 " ]]; then
76+ echo " 0"
77+ elif [[ " $major1 " -lt " $major2 " ]] ||
78+ { [[ " $major1 " -eq " $major2 " ]] && [[ " $minor1 " -lt " $minor2 " ]]; } ||
79+ { [[ " $major1 " -eq " $major2 " ]] && [[ " $minor1 " -eq " $minor2 " ]] && [[ " $patch1 " -lt " $patch2 " ]]; }; then
80+ echo " -1"
81+ else
82+ echo " 1"
83+ fi
84+ }
Original file line number Diff line number Diff line change @@ -26,10 +26,10 @@ args=("--port" "$VALKEY_PORT_NUMBER" "--include" "${VALKEY_BASE_DIR}/etc/valkey.
2626if ! is_boolean_yes " $ALLOW_EMPTY_PASSWORD " ; then
2727 if [[ -w " ${VALKEY_BASE_DIR} /etc/valkey.conf" ]]; then
2828 valkey_conf_set requirepass " $VALKEY_PASSWORD "
29- valkey_conf_set masterauth " $VALKEY_PASSWORD "
29+ valkey_conf_set primaryauth " $VALKEY_PASSWORD "
3030 else
3131 args+=(" --requirepass" " $VALKEY_PASSWORD " )
32- args+=(" --masterauth " " $VALKEY_PASSWORD " )
32+ args+=(" --primaryauth " " $VALKEY_PASSWORD " )
3333 fi
3434else
3535 args+=(" --protected-mode" " no" )
You can’t perform that action at this time.
0 commit comments