5.0.6-debian-10-r42 release

This commit is contained in:
Bitnami Bot
2022-03-12 15:11:03 +00:00
parent c58702501f
commit cd1220879a
4 changed files with 12 additions and 2 deletions

View File

@@ -24,7 +24,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="5.0.6-debian-10-r41" \
BITNAMI_IMAGE_VERSION="5.0.6-debian-10-r42" \
PATH="/opt/bitnami/common/bin:/opt/bitnami/mongodb/bin:$PATH"
EXPOSE 27017

View File

@@ -1161,6 +1161,14 @@ mongodb_configure_secondary() {
error "Secondary node did not get marked as secondary"
exit 1
fi
# Mark node as readable. This is necessary in cases where the PVC is lost
if is_boolean_yes "$MONGODB_SET_SECONDARY_OK"; then
mongodb_execute_print_output "$MONGODB_INITIAL_PRIMARY_ROOT_USER" "$MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD" "admin" <<EOF
rs.secondaryOk()
EOF
fi
fi
}

View File

@@ -55,6 +55,7 @@ mongodb_env_vars=(
MONGODB_INITIAL_PRIMARY_PORT_NUMBER
MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD
MONGODB_INITIAL_PRIMARY_ROOT_USER
MONGODB_SET_SECONDARY_OK
MONGODB_SHARDING_MODE
MONGODB_CFG_REPLICA_SET_NAME
MONGODB_CFG_PRIMARY_HOST
@@ -152,6 +153,7 @@ MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD="${MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD:-
export MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD="${MONGODB_INITIAL_PRIMARY_ROOT_PASSWORD:-}"
MONGODB_INITIAL_PRIMARY_ROOT_USER="${MONGODB_INITIAL_PRIMARY_ROOT_USER:-"${MONGODB_PRIMARY_ROOT_USER:-}"}"
export MONGODB_INITIAL_PRIMARY_ROOT_USER="${MONGODB_INITIAL_PRIMARY_ROOT_USER:-root}"
export MONGODB_SET_SECONDARY_OK="${MONGODB_SET_SECONDARY_OK:-no}"
# Sharding settings
export MONGODB_MONGOS_TEMPLATES_FILE="$MONGODB_TEMPLATES_DIR/mongos.conf.tpl"

View File

@@ -48,7 +48,7 @@ Non-root container images add an extra layer of security and are generally recom
Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/tutorials/understand-rolling-tags-containers/).
* [`5.0`, `5.0-debian-10`, `5.0.6`, `5.0.6-debian-10-r41`, `latest` (5.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/5.0.6-debian-10-r41/5.0/debian-10/Dockerfile)
* [`5.0`, `5.0-debian-10`, `5.0.6`, `5.0.6-debian-10-r42`, `latest` (5.0/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/5.0.6-debian-10-r42/5.0/debian-10/Dockerfile)
* [`4.4`, `4.4-debian-10`, `4.4.13`, `4.4.13-debian-10-r9` (4.4/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.4.13-debian-10-r9/4.4/debian-10/Dockerfile)
* [`4.2`, `4.2-debian-10`, `4.2.19`, `4.2.19-debian-10-r10` (4.2/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-mongodb/blob/4.2.19-debian-10-r10/4.2/debian-10/Dockerfile)