mirror of
https://github.com/bitnami/containers.git
synced 2026-03-03 06:58:07 +08:00
5.0.6-debian-10-r42 release
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user