From 0b8592b7a4588042ecf130eca9cc190642214876 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Tue, 26 Mar 2024 10:31:53 +0100 Subject: [PATCH] [bitnami/cassandra] Release 4.1.4-debian-12-r5 (#64134) Signed-off-by: Bitnami Containers --- bitnami/cassandra/4.1/debian-12/Dockerfile | 6 +++--- .../prebuildfs/opt/bitnami/.bitnami_components.json | 2 +- .../prebuildfs/opt/bitnami/scripts/libbitnami.sh | 1 + .../rootfs/opt/bitnami/scripts/cassandra/postunpack.sh | 8 +++++++- bitnami/cassandra/README.md | 5 +++++ 5 files changed, 17 insertions(+), 5 deletions(-) diff --git a/bitnami/cassandra/4.1/debian-12/Dockerfile b/bitnami/cassandra/4.1/debian-12/Dockerfile index 274f63998361..6a45d9b6f9ca 100644 --- a/bitnami/cassandra/4.1/debian-12/Dockerfile +++ b/bitnami/cassandra/4.1/debian-12/Dockerfile @@ -8,10 +8,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="2024-03-07T09:05:30Z" \ + org.opencontainers.image.created="2024-03-26T08:42:30Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="4.1.4-debian-12-r4" \ + org.opencontainers.image.ref.name="4.1.4-debian-12-r5" \ org.opencontainers.image.title="cassandra" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="4.1.4" @@ -27,7 +27,7 @@ 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/ ; \ COMPONENTS=( \ - "python-3.11.8-3-linux-${OS_ARCH}-debian-12" \ + "python-3.11.8-4-linux-${OS_ARCH}-debian-12" \ "java-11.0.22-12-2-linux-${OS_ARCH}-debian-12" \ "cassandra-4.1.4-0-linux-${OS_ARCH}-debian-12" \ ) ; \ diff --git a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json index dca5ab46c77d..34330af03d8d 100644 --- a/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/cassandra/4.1/debian-12/prebuildfs/opt/bitnami/.bitnami_components.json @@ -15,6 +15,6 @@ "arch": "amd64", "distro": "debian-12", "type": "NAMI", - "version": "3.11.8-3" + "version": "3.11.8-4" } } \ No newline at end of file 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 3853c789b2ea..aa782fc6a4db 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 @@ -48,6 +48,7 @@ print_image_welcome_page() { info "${BOLD}Welcome to the Bitnami ${BITNAMI_APP_NAME} container${RESET}" info "Subscribe to project updates by watching ${BOLD}${github_url}${RESET}" info "Submit issues and feature requests at ${BOLD}${github_url}/issues${RESET}" + info "Upgrade to Tanzu Application Catalog for production environments to access custom-configured and pre-packaged software components. Gain enhanced features, including Software Bill of Materials (SBOM), CVE scan result reports, and VEX documents. To learn more, visit ${BOLD}https://bitnami.com/enterprise${RESET}" info "" } diff --git a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/postunpack.sh b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/postunpack.sh index e4287dd36b70..e50106d39d23 100755 --- a/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/postunpack.sh +++ b/bitnami/cassandra/4.1/debian-12/rootfs/opt/bitnami/scripts/cassandra/postunpack.sh @@ -11,11 +11,17 @@ # Load Cassandra environment variables . /opt/bitnami/scripts/cassandra-env.sh -for dir in "$CASSANDRA_INITSCRIPTS_DIR" "$CASSANDRA_TMP_DIR" "$CASSANDRA_CONF_DIR" "$CASSANDRA_LOG_DIR" "$CASSANDRA_MOUNTED_CONF_DIR" "$CASSANDRA_VOLUME_DIR"; do + +for dir in "$CASSANDRA_INITSCRIPTS_DIR" "$CASSANDRA_TMP_DIR" "$CASSANDRA_LOG_DIR" "$CASSANDRA_MOUNTED_CONF_DIR" "$CASSANDRA_VOLUME_DIR"; do ensure_dir_exists "$dir" chmod -R g+rwX "$dir" done +# Copy configuration files for the scripts to work +ensure_dir_exists "$CASSANDRA_CONF_DIR" +cassandra_copy_default_config +chmod -R g+rwX "$CASSANDRA_CONF_DIR" + # Create wrapper for cqlsh cat <"${CASSANDRA_BIN_DIR}/cqlsh" #!/bin/sh diff --git a/bitnami/cassandra/README.md b/bitnami/cassandra/README.md index 73c8af6449de..f034c6569ba1 100644 --- a/bitnami/cassandra/README.md +++ b/bitnami/cassandra/README.md @@ -178,14 +178,18 @@ docker-compose up -d | `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` | @@ -202,6 +206,7 @@ docker-compose up -d | `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` |