[bitnami/mongodb-sharded] Release 8.2.0-debian-12-r2 (#86273)

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Bitnami Bot
2025-09-22 10:36:35 +02:00
committed by GitHub
parent cff7f7ed60
commit 077a5b3080
5 changed files with 2 additions and 13 deletions

View File

@@ -7,7 +7,7 @@ ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
ARG TARGETARCH
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
org.opencontainers.image.created="2025-09-19T14:34:35Z" \
org.opencontainers.image.created="2025-09-22T08:22:29Z" \
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/mongodb-sharded/README.md" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mongodb-sharded" \
@@ -55,7 +55,7 @@ COPY rootfs /
RUN /opt/bitnami/scripts/mongodb-sharded/postunpack.sh
ENV APP_VERSION="8.2.0" \
BITNAMI_APP_NAME="mongodb-sharded" \
IMAGE_REVISION="1" \
IMAGE_REVISION="2" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/mongodb/bin:$PATH"
EXPOSE 27017

View File

@@ -31,7 +31,6 @@ net:
# replica set options
#replication:
#replSetName: {{MONGODB_DEFAULT_REPLICA_SET_NAME}}
#enableMajorityReadConcern: {{MONGODB_DEFAULT_ENABLE_MAJORITY_READ}}
# sharding options
#sharding:

View File

@@ -661,13 +661,9 @@ mongodb_set_replicasetmode_conf() {
if ! mongodb_is_file_external "$conf_file_name"; then
mongodb_config_apply_regex "#?replication:.*" "replication:" "$conf_file_path"
mongodb_config_apply_regex "#?replSetName:" "replSetName:" "$conf_file_path"
mongodb_config_apply_regex "#?enableMajorityReadConcern:.*" "enableMajorityReadConcern:" "$conf_file_path"
if [[ -n "$MONGODB_REPLICA_SET_NAME" ]]; then
mongodb_config_apply_regex "replSetName:.*" "replSetName: $MONGODB_REPLICA_SET_NAME" "$conf_file_path"
fi
if [[ -n "$MONGODB_ENABLE_MAJORITY_READ" ]]; then
mongodb_config_apply_regex "enableMajorityReadConcern:.*" "enableMajorityReadConcern: $({ (is_boolean_yes "$MONGODB_ENABLE_MAJORITY_READ" || [[ "$(mongodb_get_major_version)" -eq 5 ]]) && echo 'true'; } || echo 'false')" "$conf_file_path"
fi
else
debug "$conf_file_name mounted. Skipping replicaset mode enabling"
fi

View File

@@ -28,8 +28,6 @@ mongodb_env_vars=(
MONGODB_INIT_RETRY_ATTEMPTS
MONGODB_INIT_RETRY_DELAY
MONGODB_PORT_NUMBER
MONGODB_ENABLE_MAJORITY_READ
MONGODB_DEFAULT_ENABLE_MAJORITY_READ
MONGODB_EXTRA_FLAGS
MONGODB_ENABLE_NUMACTL
MONGODB_SHELL_EXTRA_FLAGS
@@ -119,8 +117,6 @@ export MONGODB_INIT_RETRY_ATTEMPTS="${MONGODB_INIT_RETRY_ATTEMPTS:-7}"
export MONGODB_INIT_RETRY_DELAY="${MONGODB_INIT_RETRY_DELAY:-5}"
export MONGODB_DEFAULT_PORT_NUMBER="27017"
export MONGODB_PORT_NUMBER="${MONGODB_PORT_NUMBER:-$MONGODB_DEFAULT_PORT_NUMBER}"
export MONGODB_ENABLE_MAJORITY_READ="${MONGODB_ENABLE_MAJORITY_READ:-true}"
export MONGODB_DEFAULT_ENABLE_MAJORITY_READ="${MONGODB_DEFAULT_ENABLE_MAJORITY_READ:-true}"
export MONGODB_EXTRA_FLAGS="${MONGODB_EXTRA_FLAGS:-}"
export MONGODB_ENABLE_NUMACTL="${MONGODB_ENABLE_NUMACTL:-false}"
MONGODB_SHELL_EXTRA_FLAGS="${MONGODB_SHELL_EXTRA_FLAGS:-"${MONGODB_CLIENT_EXTRA_FLAGS:-}"}"

View File

@@ -120,8 +120,6 @@ services:
| `MONGODB_INIT_RETRY_ATTEMPTS` | Maximum retries for checking the service initialization status | `7` |
| `MONGODB_INIT_RETRY_DELAY` | Time (in seconds) to wait between retries for checking the service initialization status | `5` |
| `MONGODB_PORT_NUMBER` | MongoDB port | `$MONGODB_DEFAULT_PORT_NUMBER` |
| `MONGODB_ENABLE_MAJORITY_READ` | Enable majority read in MongoDB operations | `true` |
| `MONGODB_DEFAULT_ENABLE_MAJORITY_READ` | Enable majority read in MongoDB operations set at build time | `true` |
| `MONGODB_EXTRA_FLAGS` | Extra flags for MongoDB initialization | `nil` |
| `MONGODB_ENABLE_NUMACTL` | Execute commands using numactl | `false` |
| `MONGODB_SHELL_EXTRA_FLAGS` | Extra flags when using the mongodb client during initialization (useful when mounting init scripts) | `nil` |