From a8ae70cf70b06dcf5203d8eb1d2e2884a8146de5 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Tue, 7 May 2024 13:15:43 +0200 Subject: [PATCH] [bitnami/cassandra] Release 4.1.4-debian-12-r10 (#66281) Signed-off-by: Bitnami Containers --- bitnami/cassandra/4.1/debian-12/Dockerfile | 10 +- .../4.1/debian-12/docker-compose.yml | 2 +- .../opt/bitnami/scripts/libbitnami.sh | 2 +- .../prebuildfs/opt/bitnami/scripts/libfile.sh | 2 +- .../prebuildfs/opt/bitnami/scripts/libfs.sh | 2 +- .../prebuildfs/opt/bitnami/scripts/libhook.sh | 2 +- .../prebuildfs/opt/bitnami/scripts/liblog.sh | 2 +- .../prebuildfs/opt/bitnami/scripts/libnet.sh | 2 +- .../prebuildfs/opt/bitnami/scripts/libos.sh | 2 +- .../opt/bitnami/scripts/libpersistence.sh | 2 +- .../opt/bitnami/scripts/libservice.sh | 10 +- .../opt/bitnami/scripts/libvalidations.sh | 2 +- .../opt/bitnami/scripts/libversion.sh | 2 +- .../opt/bitnami/scripts/libwebserver.sh | 2 +- .../prebuildfs/usr/sbin/install_packages | 2 +- .../debian-12/prebuildfs/usr/sbin/run-script | 2 +- .../opt/bitnami/scripts/cassandra-env.sh | 120 +++++++++++---- .../bitnami/scripts/cassandra/entrypoint.sh | 8 +- .../bitnami/scripts/cassandra/postunpack.sh | 14 +- .../opt/bitnami/scripts/cassandra/run.sh | 18 +-- .../opt/bitnami/scripts/cassandra/setup.sh | 6 +- .../opt/bitnami/scripts/java/entrypoint.sh | 2 +- .../opt/bitnami/scripts/java/postunpack.sh | 2 +- .../opt/bitnami/scripts/libcassandra.sh | 2 +- bitnami/cassandra/README.md | 142 +++++++++--------- bitnami/cassandra/docker-compose-cluster.yml | 2 +- bitnami/cassandra/docker-compose.yml | 2 +- 27 files changed, 212 insertions(+), 154 deletions(-) diff --git a/bitnami/cassandra/4.1/debian-12/Dockerfile b/bitnami/cassandra/4.1/debian-12/Dockerfile index 726da5d50926..86c61705465d 100644 --- a/bitnami/cassandra/4.1/debian-12/Dockerfile +++ b/bitnami/cassandra/4.1/debian-12/Dockerfile @@ -1,4 +1,4 @@ -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 FROM docker.io/bitnami/minideb:bookworm @@ -8,14 +8,14 @@ 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-05-04T08:00:54Z" \ - org.opencontainers.image.description="Application packaged by VMware, Inc" \ + org.opencontainers.image.created="2024-05-07T10:36:25Z" \ + 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.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="4.1.4-debian-12-r9" \ + org.opencontainers.image.ref.name="4.1.4-debian-12-r10" \ org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/cassandra" \ org.opencontainers.image.title="cassandra" \ - org.opencontainers.image.vendor="VMware, Inc." \ + org.opencontainers.image.vendor="Broadcom, Inc." \ org.opencontainers.image.version="4.1.4" ENV HOME="/" \ diff --git a/bitnami/cassandra/4.1/debian-12/docker-compose.yml b/bitnami/cassandra/4.1/debian-12/docker-compose.yml index af3d31b2f806..134ec313c186 100644 --- a/bitnami/cassandra/4.1/debian-12/docker-compose.yml +++ b/bitnami/cassandra/4.1/debian-12/docker-compose.yml @@ -1,4 +1,4 @@ -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 version: '2' diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libbitnami.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libbitnami.sh index aa782fc6a4db..d239f9853573 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libbitnami.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libbitnami.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Bitnami custom library diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfile.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfile.sh index 63759c777f3b..1c69e0e48a5d 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfile.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfile.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Library for managing files diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfs.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfs.sh index 96b22f99710c..970d62417964 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfs.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libfs.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Library for file system actions diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libhook.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libhook.sh index dadd06149e00..f3a5fe7868ee 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libhook.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libhook.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Library to use for scripts expected to be used as Kubernetes lifecycle hooks diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/liblog.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/liblog.sh index 2a9e76a4d725..450f05bd823f 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/liblog.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/liblog.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Library for logging functions diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libnet.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libnet.sh index b47c69a56825..90652245c2a7 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libnet.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libnet.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Library for network functions diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libos.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libos.sh index c0500acee78d..9d908c48579b 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libos.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libos.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Library for operating system actions diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libpersistence.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libpersistence.sh index af6af64d6dd0..18445e7d27fa 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libpersistence.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libpersistence.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Bitnami persistence library diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libservice.sh b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libservice.sh index 107f54e6b5c9..1f9b33096b02 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libservice.sh +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/scripts/libservice.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Library for managing services @@ -132,7 +132,7 @@ generate_cron_conf() { mkdir -p /etc/cron.d if "$clean"; then cat > "/etc/cron.d/${service_name}" < "${monit_conf_dir}/${service_name}.conf${conf_suffix:-}" < "${logrotate_conf_dir}/${service_name}" -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 ${log_path} { @@ -402,7 +402,7 @@ generate_systemd_conf() { fi # Generate the Systemd unit cat > "$service_file" <"${CASSANDRA_BIN_DIR}/cqlsh" +cat <"${DB_BIN_DIR}/cqlsh" #!/bin/sh -exec "${PYTHON_BIN_DIR}/python" "${CASSANDRA_BIN_DIR}/cqlsh.py" "\$@" +exec "${PYTHON_BIN_DIR}/python" "${DB_BIN_DIR}/cqlsh.py" "\$@" EOF -chmod +x "${CASSANDRA_BIN_DIR}/cqlsh" +chmod +x "${DB_BIN_DIR}/cqlsh" ensure_dir_exists "${HOME}/.cassandra" chmod -R g+rwX "${HOME}/.cassandra" diff --git a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/run.sh b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/run.sh index c09caa5602ed..b3f222c3661c 100755 --- a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/run.sh +++ b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/run.sh @@ -34,14 +34,14 @@ info "** Starting Cassandra **" # # If none of the two cases apply, we assume it is an error and exit if is_cassandra_running; then - __run_pid="$(get_pid_from_file "$CASSANDRA_PID_FILE")" + __run_pid="$(get_pid_from_file "$DB_PID_FILE")" running_log_file="" - if [[ -f "$CASSANDRA_FIRST_BOOT_LOG_FILE" ]]; then - running_log_file="$CASSANDRA_FIRST_BOOT_LOG_FILE" + if [[ -f "$DB_FIRST_BOOT_LOG_FILE" ]]; then + running_log_file="$DB_FIRST_BOOT_LOG_FILE" info "Cassandra already running with PID $__run_pid because of the initial cluster setup" - elif [[ -f "$CASSANDRA_INITSCRIPTS_BOOT_LOG_FILE" ]]; then - running_log_file="$CASSANDRA_INITSCRIPTS_BOOT_LOG_FILE" + elif [[ -f "$DB_INITSCRIPTS_BOOT_LOG_FILE" ]]; then + running_log_file="$DB_INITSCRIPTS_BOOT_LOG_FILE" info "Cassandra already running PID $__run_pid because of the init scripts execution" else error "Cassandra is already running for an unexpected reason. Exiting" @@ -53,15 +53,15 @@ if is_cassandra_running; then readonly __run_tail_flags=("--pid=${__run_pid}" "-n" "1000" "-f" "$running_log_file") if am_i_root; then - exec_as_user "$CASSANDRA_DAEMON_USER" "${__run_tail_cmd}" "${__run_tail_flags[@]}" + exec_as_user "$DB_DAEMON_USER" "${__run_tail_cmd}" "${__run_tail_flags[@]}" else exec "${__run_tail_cmd}" "${__run_tail_flags[@]}" fi else - readonly __run_cmd="${CASSANDRA_BIN_DIR}/cassandra" - readonly __run_flags=("-p $CASSANDRA_PID_FILE" "-R" "-f") + readonly __run_cmd="${DB_BIN_DIR}/cassandra" + readonly __run_flags=("-p $DB_PID_FILE" "-R" "-f") if am_i_root; then - exec_as_user "$CASSANDRA_DAEMON_USER" "${__run_cmd}" "${__run_flags[@]}" + exec_as_user "$DB_DAEMON_USER" "${__run_cmd}" "${__run_flags[@]}" else exec "${__run_cmd}" "${__run_flags[@]}" fi diff --git a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/setup.sh b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/setup.sh index 325b9473326e..5edebf92b826 100755 --- a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/setup.sh +++ b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/setup.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Bitnami Cassandra setup @@ -23,11 +23,11 @@ cassandra_set_default_host # Ensure Cassandra environment variables settings are valid cassandra_validate # Ensure 'daemon' user exists when running as 'root' -am_i_root && ensure_user_exists "$CASSANDRA_DAEMON_USER" --group "$CASSANDRA_DAEMON_GROUP" +am_i_root && ensure_user_exists "$DB_DAEMON_USER" --group "$DB_DAEMON_GROUP" # Ensure Cassandra is initialized cassandra_initialize # Allow running custom initialization scripts -if ! is_boolean_yes "$CASSANDRA_IGNORE_INITDB_SCRIPTS"; then +if ! is_boolean_yes "$DB_IGNORE_INITDB_SCRIPTS"; then cassandra_custom_init_scripts fi diff --git a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh index c3a1e2383fa1..8557631d2549 100755 --- a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh +++ b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # shellcheck disable=SC1091 diff --git a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh index 52dbf4f13673..c15af32e2f77 100755 --- a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh +++ b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # shellcheck disable=SC1091 diff --git a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/libcassandra.sh b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/libcassandra.sh index 57c6f8441cfd..9fc95ea87a93 100644 --- a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/libcassandra.sh +++ b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/libcassandra.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 # # Bitnami Cassandra library diff --git a/bitnami/cassandra/README.md b/bitnami/cassandra/README.md index f034c6569ba1..1c0452ccdc9e 100644 --- a/bitnami/cassandra/README.md +++ b/bitnami/cassandra/README.md @@ -164,80 +164,80 @@ docker-compose up -d #### Customizable environment variables -| Name | Description | Default Value | -|----------------------------------------------------|-----------------------------------------------------------------------------------------|----------------------------------------------| -| `CASSANDRA_VOLUME_DIR` | Cassandra persistence directory. | `/bitnami/cassandra` | -| `CASSANDRA_DATA_DIR` | Cassandra directory where data is stored. | `${CASSANDRA_VOLUME_DIR}/data` | -| `CASSANDRA_COMMITLOG_DIR` | Cassandra commit log directory. | `${CASSANDRA_DATA_DIR}/commitlog` | -| `CASSANDRA_MOUNTED_CONF_DIR` | Cassandra directory for mounted configuration files. | `${CASSANDRA_VOLUME_DIR}/conf` | -| `CASSANDRA_CLIENT_ENCRYPTION` | Enable client encryption. | `false` | -| `CASSANDRA_CLUSTER_NAME` | Cassandra cluster name. | `My Cluster` | -| `CASSANDRA_DATACENTER` | Cassandra datacenter name. | `dc1` | -| `CASSANDRA_ENABLE_REMOTE_CONNECTIONS` | Enable connection from remote locations. | `true` | -| `CASSANDRA_ENABLE_RPC` | Enable RPC endpoint in Cassandra. | `true` | -| `CASSANDRA_ENABLE_USER_DEFINED_FUNCTIONS` | Enable user defined functions. | `false` | -| `CASSANDRA_ENABLE_SCRIPTED_USER_DEFINED_FUNCTIONS` | Enable scripted user defined functions. | `false` | -| `CASSANDRA_ENDPOINT_SNITCH` | Name of the cluster endpoint snitch. | `SimpleSnitch` | -| `CASSANDRA_HOST` | Cassandra host name. | `nil` | -| `CASSANDRA_INTERNODE_ENCRYPTION` | Internode encryption type. | `none` | -| `CASSANDRA_NUM_TOKENS` | Number of tokens in cluster connection. | `256` | -| `CASSANDRA_PASSWORD_SEEDER` | Set the node as password seeder in the clustre. | `no` | -| `CASSANDRA_SEEDS` | List of cluster seeds. | `$CASSANDRA_HOST` | -| `CASSANDRA_PEERS` | List of cluster peers. | `$CASSANDRA_SEEDS` | -| `CASSANDRA_PEERS` | List of cluster peers. | `$CASSANDRA_SEEDS` | -| `CASSANDRA_NODES` | List of cluster nodes (seeders and non seeders) | `nil` | -| `CASSANDRA_RACK` | Cassandra rack name. | `rack1` | -| `CASSANDRA_BROADCAST_ADDRESS` | Node broadcast address. | `nil` | -| `CASSANDRA_AUTOMATIC_SSTABLE_UPGRADE` | Automatically upgrade sstables after upgrade. | `false` | -| `CASSANDRA_STARTUP_CQL` | Startup CQL commands to run at boot. | `nil` | -| `CASSANDRA_IGNORE_INITDB_SCRIPTS` | Ignore the execution of init scripts | `no` | -| `CASSANDRA_CQL_PORT_NUMBER` | CQL port. | `9042` | -| `CASSANDRA_JMX_PORT_NUMBER` | JMX port. | `7199` | -| `CASSANDRA_TRANSPORT_PORT_NUMBER` | Transport port. | `7000` | -| `CASSANDRA_CQL_MAX_RETRIES` | Maximum retries for CQL startup operations. | `20` | -| `CASSANDRA_CQL_SLEEP_TIME` | Sleep time for CQL startup operations. | `5` | -| `CASSANDRA_INIT_MAX_RETRIES` | Maximum retries for init startup operations. | `100` | -| `CASSANDRA_INIT_SLEEP_TIME` | Sleep time for init startup operations. | `5` | -| `CASSANDRA_PEER_CQL_MAX_RETRIES` | Maximum retries for peer startup operations. | `100` | -| `CASSANDRA_PEER_CQL_SLEEP_TIME` | Sleep time for peer startup operations. | `10` | -| `CASSANDRA_DELAY_START_TIME` | Delay Cassandra start by the number of provided seconds. | `0` | -| `CASSANDRA_AUTO_SNAPSHOT_TTL` | Take an automatic snapshot of the data before truncating a keyspace or dropping a table | `30d` | -| `ALLOW_EMPTY_PASSWORD` | Allow no credentials in the installation. | `no` | -| `CASSANDRA_AUTHORIZER` | Cassandra connection authorizer. | `CassandraAuthorizer` | -| `CASSANDRA_AUTHENTICATOR` | Cassandra connection authenticator. | `PasswordAuthenticator` | -| `CASSANDRA_USER` | Cassandra username. | `cassandra` | -| `CASSANDRA_PASSWORD` | Cassandra password. | `nil` | -| `CASSANDRA_KEYSTORE_PASSWORD` | Cassandra keystore password. | `cassandra` | -| `CASSANDRA_TRUSTSTORE_PASSWORD` | Cassandra truststore password. | `cassandra` | -| `CASSANDRA_KEYSTORE_LOCATION` | Cassandra keystore location. | `${CASSANDRA_VOLUME_DIR}/secrets/keystore` | -| `CASSANDRA_TRUSTSTORE_LOCATION` | Cassandra truststore location. | `${CASSANDRA_VOLUME_DIR}/secrets/truststore` | -| `CASSANDRA_SSL_VALIDATE` | Perform SSL validation on the certificates. | `false` | -| `SSL_VERSION` | TLS version to use when connecting. | `TLSv1_2` | +| Name | Description | Default Value | +|----------------------------------------------------|-----------------------------------------------------------------------------------------|---------------------------------------| +| `CASSANDRA_MOUNTED_CONF_DIR` | Cassandra directory for mounted configuration files | `${DB_VOLUME_DIR}/conf` | +| `CASSANDRA_CLIENT_ENCRYPTION` | Enable client encryption | `false` | +| `CASSANDRA_CLUSTER_NAME` | Cassandra cluster name | `My Cluster` | +| `CASSANDRA_DATACENTER` | Cassandra datacenter name | `dc1` | +| `CASSANDRA_ENABLE_REMOTE_CONNECTIONS` | Enable connection from remote locations | `true` | +| `CASSANDRA_ENABLE_RPC` | Enable RPC endpoint in Cassandra | `false` | +| `CASSANDRA_ENABLE_USER_DEFINED_FUNCTIONS` | Enable user defined functions | `false` | +| `CASSANDRA_ENABLE_SCRIPTED_USER_DEFINED_FUNCTIONS` | Enable scripted user defined functions | `false` | +| `CASSANDRA_ENDPOINT_SNITCH` | Name of the cluster endpoint snitch | `SimpleSnitch` | +| `CASSANDRA_HOST` | Cassandra host name | `nil` | +| `CASSANDRA_INTERNODE_ENCRYPTION` | Internode encryption type | `none` | +| `CASSANDRA_NUM_TOKENS` | Number of tokens in cluster connection | `256` | +| `CASSANDRA_PASSWORD_SEEDER` | Set node as password seeder in the cluster | `no` | +| `CASSANDRA_SEEDS` | List of cluster seeds | `$DB_HOST` | +| `CASSANDRA_PEERS` | List of cluster peers | `$DB_SEEDS` | +| `CASSANDRA_NODES` | List of cluster nodes (seeders and non seeders) | `nil` | +| `CASSANDRA_RACK` | Cassandra rack name | `rack1` | +| `CASSANDRA_BROADCAST_ADDRESS` | Node broadcast address | `nil` | +| `CASSANDRA_AUTOMATIC_SSTABLE_UPGRADE` | Automatically upgrade sstables after upgrade | `false` | +| `CASSANDRA_STARTUP_CQL` | Startup CQL commands to run at boot | `nil` | +| `CASSANDRA_IGNORE_INITDB_SCRIPTS` | Ignore the execution of init scripts | `no` | +| `CASSANDRA_CQL_PORT_NUMBER` | CQL port | `9042` | +| `CASSANDRA_JMX_PORT_NUMBER` | JMX port | `7199` | +| `CASSANDRA_TRANSPORT_PORT_NUMBER` | Transport port | `7000` | +| `CASSANDRA_CQL_MAX_RETRIES` | Maximum retries for CQL startup operations | `20` | +| `CASSANDRA_CQL_SLEEP_TIME` | Sleep time for CQL startup operations | `5` | +| `CASSANDRA_INIT_MAX_RETRIES` | Maximum retries for init startup operations | `100` | +| `CASSANDRA_INIT_SLEEP_TIME` | Sleep time for init startup operations | `5` | +| `CASSANDRA_PEER_CQL_MAX_RETRIES` | Maximum retries for peer startup operations | `100` | +| `CASSANDRA_PEER_CQL_SLEEP_TIME` | Sleep time for peer startup operations | `10` | +| `CASSANDRA_DELAY_START_TIME` | Delay Cassandra start by the number of provided seconds | `10` | +| `CASSANDRA_AUTO_SNAPSHOT_TTL` | Take an automatic snapshot of the data before truncating a keyspace or dropping a table | `30d` | +| `ALLOW_EMPTY_PASSWORD` | Allow no credentials in the installation. | `no` | +| `CASSANDRA_AUTHORIZER` | Cassandra connection authorizer | `CassandraAuthorizer` | +| `CASSANDRA_AUTHENTICATOR` | Cassandra connection authenticator | `PasswordAuthenticator` | +| `CASSANDRA_USER` | Cassandra username | `cassandra` | +| `CASSANDRA_PASSWORD` | Cassandra password | `nil` | +| `CASSANDRA_KEYSTORE_PASSWORD` | Cassandra keystore password | `cassandra` | +| `CASSANDRA_TRUSTSTORE_PASSWORD` | Cassandra truststore password | `cassandra` | +| `CASSANDRA_KEYSTORE_LOCATION` | Cassandra keystore location | `${DB_VOLUME_DIR}/secrets/keystore` | +| `CASSANDRA_TRUSTSTORE_LOCATION` | Cassandra truststore location | `${DB_VOLUME_DIR}/secrets/truststore` | +| `CASSANDRA_TMP_P12_FILE` | Cassandra truststore location | `${DB_TMP_DIR}/keystore.p12` | +| `CASSANDRA_SSL_CERT_FILE` | Cassandra SSL certificate location | `${DB_VOLUME_DIR}/client.cer.pem` | +| `CASSANDRA_SSL_VALIDATE` | Perform SSL validation on the certificates | `false` | +| `SSL_VERSION` | TLS version to use when connecting. | `TLSv1_2` | #### Read-only environment variables -| Name | Description | Value | -|---------------------------------------|--------------------------------------------|--------------------------------------------------------| -| `CASSANDRA_BASE_DIR` | Cassandra installation directory. | `${BITNAMI_ROOT_DIR}/cassandra` | -| `CASSANDRA_BIN_DIR` | Cassandra binary directory. | `${CASSANDRA_BASE_DIR}/bin` | -| `CASSANDRA_CONF_DIR` | Cassandra configuration directory. | `${CASSANDRA_BASE_DIR}/conf` | -| `CASSANDRA_DEFAULT_CONF_DIR` | Cassandra configuration directory. | `${CASSANDRA_BASE_DIR}/conf.default` | -| `CASSANDRA_INITSCRIPTS_DIR` | Cassandra directory for init scripts. | `/docker-entrypoint-initdb.d` | -| `CASSANDRA_LOG_DIR` | Cassandra directory for logs. | `${CASSANDRA_BASE_DIR}/logs` | -| `CASSANDRA_TMP_DIR` | Cassandra directory for temporary files. | `${CASSANDRA_BASE_DIR}/tmp` | -| `JAVA_BASE_DIR` | Java base directory. | `${BITNAMI_ROOT_DIR}/java` | -| `JAVA_BIN_DIR` | Java binary directory. | `${JAVA_BASE_DIR}/bin` | -| `PYTHON_BASE_DIR` | Python base directory. | `${BITNAMI_ROOT_DIR}/python` | -| `PYTHON_BIN_DIR` | Python binary directory. | `${PYTHON_BASE_DIR}/bin` | -| `CASSANDRA_CONF_FILE` | Path to the Cassandra configuration file. | `${CASSANDRA_CONF_DIR}/cassandra.yaml` | -| `CASSANDRA_LOG_FILE` | Path to the Cassandra log file. | `${CASSANDRA_LOG_DIR}/cassandra.log` | -| `CASSANDRA_FIRST_BOOT_LOG_FILE` | Path to the Cassandra first boot log file. | `${CASSANDRA_LOG_DIR}/cassandra_first_boot.log` | -| `CASSANDRA_INITSCRIPTS_BOOT_LOG_FILE` | Path to the Cassandra first boot log file. | `${CASSANDRA_LOG_DIR}/cassandra_init_scripts_boot.log` | -| `CASSANDRA_PID_FILE` | Path to the PID file for Cassandra. | `${CASSANDRA_TMP_DIR}/cassandra.pid` | -| `CASSANDRA_DAEMON_USER` | Cassandra system user. | `cassandra` | -| `CASSANDRA_DAEMON_GROUP` | Cassandra system group. | `cassandra` | -| `CASSANDRA_TMP_P12_FILE` | Cassandra temporary p12 file location. | `${CASSANDRA_TMP_DIR}/keystore.p12` | -| `CASSANDRA_SSL_CERT_FILE` | Cassandra SSL certificate location. | `${CASSANDRA_VOLUME_DIR}/client.cer.pem` | +| Name | Description | Value | +|---------------------------------------|-----------------------------------------------------------|-------------------------------------------------| +| `DB_FLAVOR` | Database flavor. Valid values: `cassandra` or `scylladb`. | `cassandra` | +| `CASSANDRA_BASE_DIR` | Cassandra installation directory | `/opt/bitnami/cassandra` | +| `CASSANDRA_BIN_DIR` | Cassandra executables directory | `${DB_BASE_DIR}/bin` | +| `CASSANDRA_CONF_DIR` | Cassandra configuration directory | `${DB_BASE_DIR}/conf` | +| `CASSANDRA_VOLUME_DIR` | Persistence base directory | `/bitnami/cassandra` | +| `CASSANDRA_DATA_DIR` | Cassandra data directory | `${DB_VOLUME_DIR}/data` | +| `CASSANDRA_COMMITLOG_DIR` | Cassandra commit log directory | `${DB_DATA_DIR}/commitlog` | +| `CASSANDRA_DEFAULT_CONF_DIR` | Cassandra default configuration directory | `${DB_BASE_DIR}/conf.default` | +| `CASSANDRA_INITSCRIPTS_DIR` | Path to the Cassandra container init scripts directory | `/docker-entrypoint-initdb.d` | +| `CASSANDRA_LOG_DIR` | Cassandra logs directory | `${DB_BASE_DIR}/logs` | +| `CASSANDRA_TMP_DIR` | Cassandra temporary directory | `${DB_BASE_DIR}/tmp` | +| `JAVA_BASE_DIR` | Java base directory | `${BITNAMI_ROOT_DIR}/java` | +| `JAVA_BIN_DIR` | Java binary directory | `${JAVA_BASE_DIR}/bin` | +| `PYTHON_BASE_DIR` | Python base directory | `${BITNAMI_ROOT_DIR}/python` | +| `PYTHON_BIN_DIR` | Python binary directory | `${PYTHON_BASE_DIR}/bin` | +| `CASSANDRA_CONF_FILE` | Path to Cassandra configuration file | `${DB_CONF_DIR}/cassandra.yaml` | +| `CASSANDRA_LOG_FILE` | Path to the Cassandra log file | `${DB_LOG_DIR}/cassandra.log` | +| `CASSANDRA_FIRST_BOOT_LOG_FILE` | Path to the Cassandra first boot log file | `${DB_LOG_DIR}/cassandra_first_boot.log` | +| `CASSANDRA_INITSCRIPTS_BOOT_LOG_FILE` | Path to the Cassandra init scripts log file | `${DB_LOG_DIR}/cassandra_init_scripts_boot.log` | +| `CASSANDRA_PID_FILE` | Path to the Cassandra pid file | `${DB_TMP_DIR}/cassandra.pid` | +| `CASSANDRA_DAEMON_USER` | Cassandra system user | `cassandra` | +| `CASSANDRA_DAEMON_GROUP` | Cassandra system group | `cassandra` | Additionally, any environment variable beginning with the following prefix will be mapped to its corresponding Apache Cassandra key in the proper file: diff --git a/bitnami/cassandra/docker-compose-cluster.yml b/bitnami/cassandra/docker-compose-cluster.yml index 9b03ed369f5c..e772909726de 100644 --- a/bitnami/cassandra/docker-compose-cluster.yml +++ b/bitnami/cassandra/docker-compose-cluster.yml @@ -1,4 +1,4 @@ -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 version: '2' diff --git a/bitnami/cassandra/docker-compose.yml b/bitnami/cassandra/docker-compose.yml index af3d31b2f806..134ec313c186 100644 --- a/bitnami/cassandra/docker-compose.yml +++ b/bitnami/cassandra/docker-compose.yml @@ -1,4 +1,4 @@ -# Copyright VMware, Inc. +# Copyright Broadcom, Inc. All Rights Reserved. # SPDX-License-Identifier: APACHE-2.0 version: '2'