From 5a4b0316e8fbffb903d2eae278c1b0b909eaf525 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Tue, 14 Sep 2021 11:14:50 +0000 Subject: [PATCH] 4.2.16-debian-10-r4 release --- bitnami/mongodb-sharded/4.2/debian-10/Dockerfile | 2 +- .../4.2/debian-10/rootfs/opt/bitnami/scripts/libmongodb.sh | 4 ++-- .../4.2/debian-10/rootfs/opt/bitnami/scripts/mongodb-env.sh | 3 ++- bitnami/mongodb-sharded/README.md | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/bitnami/mongodb-sharded/4.2/debian-10/Dockerfile b/bitnami/mongodb-sharded/4.2/debian-10/Dockerfile index a20665318963..fcc96abfeacb 100644 --- a/bitnami/mongodb-sharded/4.2/debian-10/Dockerfile +++ b/bitnami/mongodb-sharded/4.2/debian-10/Dockerfile @@ -22,7 +22,7 @@ RUN ln -s /opt/bitnami/scripts/mongodb-sharded/run.sh /run.sh COPY rootfs / RUN /opt/bitnami/scripts/mongodb-sharded/postunpack.sh ENV BITNAMI_APP_NAME="mongodb-sharded" \ - BITNAMI_IMAGE_VERSION="4.2.16-debian-10-r3" \ + BITNAMI_IMAGE_VERSION="4.2.16-debian-10-r4" \ PATH="/opt/bitnami/common/bin:/opt/bitnami/mongodb/bin:$PATH" EXPOSE 27017 diff --git a/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/libmongodb.sh b/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/libmongodb.sh index 2a0e29934a45..e706f5ef8de2 100644 --- a/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/libmongodb.sh +++ b/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/libmongodb.sh @@ -215,13 +215,13 @@ mongodb_start_bg() { is_mongodb_running && return if am_i_root; then - if [ "${MONGODB_ENABLE_NUMACTL}" = true ]; then + if is_boolean_yes "$MONGODB_ENABLE_NUMACTL"; then debug_execute gosu "$MONGODB_DAEMON_USER" numactl --interleave=all "$MONGODB_BIN_DIR/mongod" "${flags[@]}" else debug_execute gosu "$MONGODB_DAEMON_USER" "$MONGODB_BIN_DIR/mongod" "${flags[@]}" fi else - if [ "${MONGODB_ENABLE_NUMACTL}" = true ]; then + if is_boolean_yes "$MONGODB_ENABLE_NUMACTL"; then debug_execute numactl --interleave=all "$MONGODB_BIN_DIR/mongod" "${flags[@]}" else debug_execute "$MONGODB_BIN_DIR/mongod" "${flags[@]}" diff --git a/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/mongodb-env.sh b/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/mongodb-env.sh index 0b43255da6b5..eeb8fef42f2c 100644 --- a/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/mongodb-env.sh +++ b/bitnami/mongodb-sharded/4.2/debian-10/rootfs/opt/bitnami/scripts/mongodb-env.sh @@ -36,6 +36,7 @@ mongodb_env_vars=( MONGODB_ENABLE_DIRECTORY_PER_DB MONGODB_ENABLE_IPV6 MONGODB_SYSTEM_LOG_VERBOSITY + MONGODB_ROOT_USER MONGODB_ROOT_PASSWORD MONGODB_USERNAME MONGODB_PASSWORD @@ -119,7 +120,7 @@ export MONGODB_SYSTEM_LOG_VERBOSITY="${MONGODB_SYSTEM_LOG_VERBOSITY:-}" export MONGODB_DEFAULT_SYSTEM_LOG_VERBOSITY="0" # User and database creation settings -export MONGODB_ROOT_USER="root" +export MONGODB_ROOT_USER="${MONGODB_ROOT_USER:-root}" export MONGODB_ROOT_PASSWORD="${MONGODB_ROOT_PASSWORD:-}" export MONGODB_USERNAME="${MONGODB_USERNAME:-}" export MONGODB_PASSWORD="${MONGODB_PASSWORD:-}" diff --git a/bitnami/mongodb-sharded/README.md b/bitnami/mongodb-sharded/README.md index e379bef66745..a75e41098124 100644 --- a/bitnami/mongodb-sharded/README.md +++ b/bitnami/mongodb-sharded/README.md @@ -50,7 +50,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`5.0`, `5.0-debian-10`, `5.0.2`, `5.0.2-debian-10-r14` (5.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/5.0.2-debian-10-r14/5.0/debian-10/Dockerfile) * [`4.4`, `4.4-debian-10`, `4.4.8`, `4.4.8-debian-10-r45`, `latest` (4.4/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.4.8-debian-10-r45/4.4/debian-10/Dockerfile) -* [`4.2`, `4.2-debian-10`, `4.2.16`, `4.2.16-debian-10-r3` (4.2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.2.16-debian-10-r3/4.2/debian-10/Dockerfile) +* [`4.2`, `4.2-debian-10`, `4.2.16`, `4.2.16-debian-10-r4` (4.2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.2.16-debian-10-r4/4.2/debian-10/Dockerfile) * [`4.0`, `4.0-debian-9`, `4.0.27`, `4.0.27-debian-9-r5` (4.0/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.0.27-debian-9-r5/4.0/debian-9/Dockerfile) * [`3.6`, `3.6-debian-9`, `3.6.23`, `3.6.23-debian-9-r162` (3.6/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/3.6.23-debian-9-r162/3.6/debian-9/Dockerfile)