mirror of
https://github.com/bitnami/containers.git
synced 2026-03-15 14:58:17 +08:00
[bitnami/mongodb] Release mongodb-7.0.14-debian-12-r5 (#73170)
Signed-off-by: Bitnami Bot <bitnami-bot@vmware.com>
This commit is contained in:
@@ -7,11 +7,11 @@ ARG TARGETARCH
|
|||||||
|
|
||||||
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
|
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
|
||||||
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
||||||
org.opencontainers.image.created="2024-10-04T13:03:24Z" \
|
org.opencontainers.image.created="2024-10-08T18:52:38Z" \
|
||||||
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
||||||
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/mongodb/README.md" \
|
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/mongodb/README.md" \
|
||||||
org.opencontainers.image.licenses="Apache-2.0" \
|
org.opencontainers.image.licenses="Apache-2.0" \
|
||||||
org.opencontainers.image.ref.name="7.0.14-debian-12-r4" \
|
org.opencontainers.image.ref.name="7.0.14-debian-12-r5" \
|
||||||
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mongodb" \
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mongodb" \
|
||||||
org.opencontainers.image.title="mongodb" \
|
org.opencontainers.image.title="mongodb" \
|
||||||
org.opencontainers.image.vendor="Broadcom, Inc." \
|
org.opencontainers.image.vendor="Broadcom, Inc." \
|
||||||
@@ -32,7 +32,7 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ ; \
|
|||||||
"wait-for-port-1.0.8-5-linux-${OS_ARCH}-debian-12" \
|
"wait-for-port-1.0.8-5-linux-${OS_ARCH}-debian-12" \
|
||||||
"render-template-1.0.7-5-linux-${OS_ARCH}-debian-12" \
|
"render-template-1.0.7-5-linux-${OS_ARCH}-debian-12" \
|
||||||
"mongodb-shell-2.3.1-0-linux-${OS_ARCH}-debian-12" \
|
"mongodb-shell-2.3.1-0-linux-${OS_ARCH}-debian-12" \
|
||||||
"mongodb-7.0.14-1-linux-${OS_ARCH}-debian-12" \
|
"mongodb-7.0.14-2-linux-${OS_ARCH}-debian-12" \
|
||||||
) ; \
|
) ; \
|
||||||
for COMPONENT in "${COMPONENTS[@]}"; do \
|
for COMPONENT in "${COMPONENTS[@]}"; do \
|
||||||
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
|
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"arch": "amd64",
|
"arch": "amd64",
|
||||||
"distro": "debian-12",
|
"distro": "debian-12",
|
||||||
"type": "NAMI",
|
"type": "NAMI",
|
||||||
"version": "7.0.14-1"
|
"version": "7.0.14-2"
|
||||||
},
|
},
|
||||||
"mongodb-shell": {
|
"mongodb-shell": {
|
||||||
"arch": "amd64",
|
"arch": "amd64",
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ Available options are 'primary/secondary/arbiter/hidden'"
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
check_yes_no_value "MONGODB_ENABLE_MAJORITY_READ"
|
check_yes_no_value "MONGODB_ENABLE_MAJORITY_READ"
|
||||||
[[ "$(mongodb_get_version)" =~ ^5\..\. ]] && ! is_boolean_yes "$MONGODB_ENABLE_MAJORITY_READ" && warn "MONGODB_ENABLE_MAJORITY_READ=${MONGODB_ENABLE_MAJORITY_READ} Will be ignored in MongoDB 5.0"
|
[[ "$(mongodb_get_major_version)" -eq 5 ]] && ! is_boolean_yes "$MONGODB_ENABLE_MAJORITY_READ" && warn "MONGODB_ENABLE_MAJORITY_READ=${MONGODB_ENABLE_MAJORITY_READ} Will be ignored in MongoDB 5.0"
|
||||||
|
|
||||||
if [[ -n "$MONGODB_REPLICA_SET_KEY" ]] && ((${#MONGODB_REPLICA_SET_KEY} < 5)); then
|
if [[ -n "$MONGODB_REPLICA_SET_KEY" ]] && ((${#MONGODB_REPLICA_SET_KEY} < 5)); then
|
||||||
error_message="MONGODB_REPLICA_SET_KEY must be, at least, 5 characters long!"
|
error_message="MONGODB_REPLICA_SET_KEY must be, at least, 5 characters long!"
|
||||||
@@ -489,7 +489,7 @@ mongodb_set_journal_conf() {
|
|||||||
|
|
||||||
if ! mongodb_is_file_external "$conf_file_name"; then
|
if ! mongodb_is_file_external "$conf_file_name"; then
|
||||||
# Disable journal.enabled since it is not supported from 7.0 on
|
# Disable journal.enabled since it is not supported from 7.0 on
|
||||||
if [[ "$(mongodb_get_version)" =~ ^7\..\. ]]; then
|
if [[ "$(mongodb_get_major_version)" -ge 7 ]]; then
|
||||||
mongodb_conf="$(sed '/journal:/,/enabled: .*/d' "$conf_file_path")"
|
mongodb_conf="$(sed '/journal:/,/enabled: .*/d' "$conf_file_path")"
|
||||||
echo "$mongodb_conf" >"$conf_file_path"
|
echo "$mongodb_conf" >"$conf_file_path"
|
||||||
else
|
else
|
||||||
@@ -669,7 +669,7 @@ mongodb_set_replicasetmode_conf() {
|
|||||||
mongodb_config_apply_regex "replSetName:.*" "replSetName: $MONGODB_REPLICA_SET_NAME" "$conf_file_path"
|
mongodb_config_apply_regex "replSetName:.*" "replSetName: $MONGODB_REPLICA_SET_NAME" "$conf_file_path"
|
||||||
fi
|
fi
|
||||||
if [[ -n "$MONGODB_ENABLE_MAJORITY_READ" ]]; then
|
if [[ -n "$MONGODB_ENABLE_MAJORITY_READ" ]]; then
|
||||||
mongodb_config_apply_regex "enableMajorityReadConcern:.*" "enableMajorityReadConcern: $({ (is_boolean_yes "$MONGODB_ENABLE_MAJORITY_READ" || [[ "$(mongodb_get_version)" =~ ^5\..\. ]]) && echo 'true'; } || echo 'false')" "$conf_file_path"
|
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
|
fi
|
||||||
else
|
else
|
||||||
debug "$conf_file_name mounted. Skipping replicaset mode enabling"
|
debug "$conf_file_name mounted. Skipping replicaset mode enabling"
|
||||||
@@ -1524,6 +1524,20 @@ mongodb_get_version() {
|
|||||||
mongod --version 2>/dev/null | awk -F\" '/"version"/ {print $4}'
|
mongod --version 2>/dev/null | awk -F\" '/"version"/ {print $4}'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
########################
|
||||||
|
# Get MongoDB major version
|
||||||
|
# Globals:
|
||||||
|
# MONGODB_*
|
||||||
|
# Arguments:
|
||||||
|
# None
|
||||||
|
# Returns:
|
||||||
|
# major version
|
||||||
|
#########################
|
||||||
|
mongodb_get_major_version() {
|
||||||
|
# shellcheck disable=SC2005
|
||||||
|
echo "$(mongodb_get_version)" | cut --delimiter='.' --fields=1
|
||||||
|
}
|
||||||
|
|
||||||
########################
|
########################
|
||||||
# Run custom initialization scripts
|
# Run custom initialization scripts
|
||||||
# Globals:
|
# Globals:
|
||||||
|
|||||||
Reference in New Issue
Block a user