[bitnami/cassandra] Release cassandra-5.0.4-debian-12-r3 (#80445)
Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
parent
8be287db47
commit
4a3478d548
|
|
@ -9,10 +9,10 @@ ARG TARGETARCH
|
|||
|
||||
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
|
||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||
org.opencontainers.image.created="2025-04-15T01:07:04Z" \
|
||||
org.opencontainers.image.created="2025-04-21T07:29:12Z" \
|
||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/cassandra/README.md" \
|
||||
org.opencontainers.image.ref.name="5.0.4-debian-12-r2" \
|
||||
org.opencontainers.image.ref.name="5.0.4-debian-12-r3" \
|
||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/cassandra" \
|
||||
org.opencontainers.image.title="cassandra" \
|
||||
org.opencontainers.image.vendor="Broadcom, Inc." \
|
||||
|
|
@ -29,8 +29,8 @@ SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
|
|||
RUN install_packages ca-certificates curl libbz2-1.0 libcom-err2 libcrypt1 libffi8 libgssapi-krb5-2 libjemalloc2 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 liblzma5 libncursesw6 libnsl2 libreadline8 libsqlite3-0 libssl3 libtinfo6 libtirpc3 procps zlib1g
|
||||
RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
|
||||
COMPONENTS=( \
|
||||
"python-3.11.12-2-linux-${OS_ARCH}-debian-12" \
|
||||
"jre-11.0.26-9-1-linux-${OS_ARCH}-debian-12" \
|
||||
"python-3.11.12-3-linux-${OS_ARCH}-debian-12" \
|
||||
"jre-11.0.27-9-0-linux-${OS_ARCH}-debian-12" \
|
||||
"cassandra-5.0.4-1-linux-${OS_ARCH}-debian-12" \
|
||||
) ; \
|
||||
for COMPONENT in "${COMPONENTS[@]}"; do \
|
||||
|
|
|
|||
|
|
@ -9,12 +9,12 @@
|
|||
"arch": "amd64",
|
||||
"distro": "debian-12",
|
||||
"type": "NAMI",
|
||||
"version": "11.0.26-9-1"
|
||||
"version": "11.0.27-9-0"
|
||||
},
|
||||
"python": {
|
||||
"arch": "amd64",
|
||||
"distro": "debian-12",
|
||||
"type": "NAMI",
|
||||
"version": "3.11.12-2"
|
||||
"version": "3.11.12-3"
|
||||
}
|
||||
}
|
||||
|
|
@ -240,11 +240,28 @@ cassandra_stop() {
|
|||
# None
|
||||
#########################
|
||||
cassandra_get_major_version() {
|
||||
cassandra_version="$("${CASSANDRA_BASE_DIR}/bin/cassandra" -v)"
|
||||
# HACK: Adding HEAP_NEWSIZE as an empty variable because right now it is throwing
|
||||
# a warning that makes the get_semantic_version extract the incorrect version
|
||||
cassandra_version="$(HEAP_NEWSIZE="" "${CASSANDRA_BASE_DIR}/bin/cassandra" -v)"
|
||||
major_version="$(get_sematic_version "$cassandra_version" 1)"
|
||||
echo "${major_version:-0}"
|
||||
}
|
||||
|
||||
########################
|
||||
# Returns scylla major version
|
||||
# Globals:
|
||||
# DB_BIN_DIR
|
||||
# Arguments:
|
||||
# None
|
||||
# Returns:
|
||||
# None
|
||||
#########################
|
||||
scylla_get_major_version() {
|
||||
scylla_version="$("${DB_BIN_DIR}/scylla" --version)"
|
||||
major_version="$(get_sematic_version "$scylla_version" 1)"
|
||||
echo "${major_version:-0}"
|
||||
}
|
||||
|
||||
########################
|
||||
# Change a Cassandra configuration yaml file by setting a property
|
||||
# Globals:
|
||||
|
|
@ -566,12 +583,12 @@ cassandra_setup_data_dirs() {
|
|||
cassandra_enable_auth() {
|
||||
if ! cassandra_is_file_external "${DB_MOUNTED_CONF_PATH}"; then
|
||||
if [[ "$ALLOW_EMPTY_PASSWORD" = "yes" ]] && [[ -z $DB_PASSWORD ]]; then
|
||||
if [[ "$DB_FLAVOR" = "scylladb" ]] || [ "$(cassandra_get_major_version)" -lt 5 ]; then
|
||||
if [[ "$DB_FLAVOR" = "scylladb" ]] || [[ "$(cassandra_get_major_version)" -lt 5 ]]; then
|
||||
cassandra_yaml_set "authenticator" "AllowAllAuthenticator"
|
||||
fi
|
||||
cassandra_yaml_set "authorizer" "AllowAllAuthorizer"
|
||||
else
|
||||
if [[ "$DB_FLAVOR" = "cassandra" ]] && [ "$(cassandra_get_major_version)" -ge 5 ]; then
|
||||
if [[ "$DB_FLAVOR" = "cassandra" ]] && [[ "$(cassandra_get_major_version)" -ge 5 ]]; then
|
||||
replace_in_file "${DB_CONF_FILE}" "class_name.* AllowAllAuthenticator" "class_name: ${DB_AUTHENTICATOR}"
|
||||
replace_in_file "${DB_CONF_FILE}" "class_name.* AllowAllAuthorizer" "class_name: ${DB_AUTHORIZER}"
|
||||
else
|
||||
|
|
@ -656,11 +673,13 @@ cassandra_setup_cluster() {
|
|||
debug "${DB_MOUNTED_CONF_PATH} mounted. Skipping cluster configuration"
|
||||
fi
|
||||
|
||||
# cassandra-env.sh changes
|
||||
if ! cassandra_is_file_external "${DB_MOUNTED_ENV_PATH}"; then
|
||||
replace_in_file "${DB_ENV_FILE}" "#\s*JVM_OPTS=\"\$JVM_OPTS -Djava[.]rmi[.]server[.]hostname=[^\"]*" "JVM_OPTS=\"\$JVM_OPTS -Djava.rmi.server.hostname=${host}"
|
||||
else
|
||||
debug "${DB_MOUNTED_ENV_PATH} mounted. Skipping setting server hostname"
|
||||
if [[ "$DB_FLAVOR" = "cassandra" ]] || [[ "$(scylla_get_major_version)" -le 6 ]]; then
|
||||
# cassandra-env.sh changes
|
||||
if ! cassandra_is_file_external "${DB_MOUNTED_ENV_PATH}"; then
|
||||
replace_in_file "${DB_ENV_FILE}" "#\s*JVM_OPTS=\"\$JVM_OPTS -Djava[.]rmi[.]server[.]hostname=[^\"]*" "JVM_OPTS=\"\$JVM_OPTS -Djava.rmi.server.hostname=${host}"
|
||||
else
|
||||
debug "${DB_MOUNTED_ENV_PATH} mounted. Skipping setting server hostname"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -776,10 +795,12 @@ cassandra_setup_common_ports() {
|
|||
debug "${DB_MOUNTED_CONF_PATH} mounted. Skipping native and storage ports configuration"
|
||||
fi
|
||||
|
||||
if ! cassandra_is_file_external "${DB_MOUNTED_ENV_PATH}"; then
|
||||
replace_in_file "${DB_ENV_FILE}" "JMX_PORT=.*" "JMX_PORT=$DB_JMX_PORT_NUMBER"
|
||||
else
|
||||
debug "${DB_MOUNTED_ENV_PATH} mounted. Skipping JMX port configuration"
|
||||
if [[ "$DB_FLAVOR" = "cassandra" ]] || [[ "$(scylla_get_major_version)" -le 6 ]]; then
|
||||
if ! cassandra_is_file_external "${DB_MOUNTED_ENV_PATH}"; then
|
||||
replace_in_file "${DB_ENV_FILE}" "JMX_PORT=.*" "JMX_PORT=$DB_JMX_PORT_NUMBER"
|
||||
else
|
||||
debug "${DB_MOUNTED_ENV_PATH} mounted. Skipping JMX port configuration"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
@ -834,9 +855,11 @@ cassandra_initialize() {
|
|||
cassandra_copy_mounted_config
|
||||
cassandra_copy_default_config
|
||||
cassandra_enable_auth
|
||||
cassandra_setup_java
|
||||
cassandra_setup_jemalloc
|
||||
cassandra_setup_logging
|
||||
if [[ "$DB_FLAVOR" = "cassandra" ]] || [[ "$(scylla_get_major_version)" -le 6 ]]; then
|
||||
cassandra_setup_java
|
||||
cassandra_setup_logging
|
||||
fi
|
||||
cassandra_setup_ports
|
||||
cassandra_setup_rack_dc
|
||||
cassandra_setup_data_dirs
|
||||
|
|
|
|||
Loading…
Reference in New Issue