[bitnami/mongodb-sharded] Release 6.0.8-debian-11-r22 (#43765)
Signed-off-by: Bitnami Containers <bitnami-bot@vmware.com>
This commit is contained in:
parent
afb5f9198c
commit
a0989b95f9
|
|
@ -7,10 +7,10 @@ ARG TARGETARCH
|
|||
|
||||
LABEL com.vmware.cp.artifact.flavor="sha256:1e1b4657a77f0d47e9220f0c37b9bf7802581b93214fff7d1bd2364c8bf22e8e" \
|
||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \
|
||||
org.opencontainers.image.created="2023-08-03T08:19:02Z" \
|
||||
org.opencontainers.image.created="2023-08-06T11:01:28Z" \
|
||||
org.opencontainers.image.description="Application packaged by VMware, Inc" \
|
||||
org.opencontainers.image.licenses="Apache-2.0" \
|
||||
org.opencontainers.image.ref.name="6.0.8-debian-11-r19" \
|
||||
org.opencontainers.image.ref.name="6.0.8-debian-11-r22" \
|
||||
org.opencontainers.image.title="mongodb-sharded" \
|
||||
org.opencontainers.image.vendor="VMware, Inc." \
|
||||
org.opencontainers.image.version="6.0.8"
|
||||
|
|
|
|||
|
|
@ -1397,6 +1397,15 @@ mongodb_initialize() {
|
|||
mongodb_set_storage_conf "$MONGODB_CONF_FILE"
|
||||
is_boolean_yes "$MONGODB_DISABLE_JAVASCRIPT" && mongodb_disable_javascript_conf "$MONGODB_CONF_FILE"
|
||||
|
||||
# Create the ReplicaSet keyFile before Mongo starts in case it is referenced in the $MONGODB_CONF_FILE
|
||||
if [[ -n "$MONGODB_REPLICA_SET_MODE" ]]; then
|
||||
if [[ -n "$MONGODB_REPLICA_SET_KEY" ]]; then
|
||||
mongodb_create_keyfile "$MONGODB_REPLICA_SET_KEY"
|
||||
mongodb_set_keyfile_conf "$MONGODB_CONF_FILE"
|
||||
fi
|
||||
mongodb_set_replicasetmode_conf "$MONGODB_CONF_FILE"
|
||||
fi
|
||||
|
||||
if is_dir_empty "$MONGODB_DATA_DIR/db"; then
|
||||
info "Deploying MongoDB from scratch..."
|
||||
ensure_dir_exists "$MONGODB_DATA_DIR/db"
|
||||
|
|
@ -1418,15 +1427,8 @@ mongodb_initialize() {
|
|||
else
|
||||
mongodb_set_auth_conf "$MONGODB_CONF_FILE"
|
||||
info "Deploying MongoDB with persisted data..."
|
||||
if [[ -n "$MONGODB_REPLICA_SET_MODE" ]]; then
|
||||
if [[ -n "$MONGODB_REPLICA_SET_KEY" ]]; then
|
||||
mongodb_create_keyfile "$MONGODB_REPLICA_SET_KEY"
|
||||
mongodb_set_keyfile_conf "$MONGODB_CONF_FILE"
|
||||
fi
|
||||
if [[ "$MONGODB_REPLICA_SET_MODE" = "dynamic" ]]; then
|
||||
mongodb_ensure_dynamic_mode_consistency
|
||||
fi
|
||||
mongodb_set_replicasetmode_conf "$MONGODB_CONF_FILE"
|
||||
if [[ -n "$MONGODB_REPLICA_SET_MODE" ]] && [[ "$MONGODB_REPLICA_SET_MODE" = "dynamic" ]]; then
|
||||
mongodb_ensure_dynamic_mode_consistency
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue