[bitnami/mongodb] Release 8.0.10-debian-12-r1 (#81940)

Signed-off-by: Bitnami Bot <bitnami.bot@broadcom.com>
This commit is contained in:
Bitnami Bot 2025-06-05 17:37:06 +02:00 committed by GitHub
parent 1977d1b344
commit b483915541
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 43 additions and 16 deletions

View File

@ -8,10 +8,10 @@ ARG TARGETARCH
LABEL com.vmware.cp.artifact.flavor="sha256:c50c90cfd9d12b445b011e6ad529f1ad3daea45c26d20b00732fae3cd71f6a83" \
org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
org.opencontainers.image.created="2025-06-03T22:37:11Z" \
org.opencontainers.image.created="2025-06-05T15:18:29Z" \
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.ref.name="8.0.10-debian-12-r0" \
org.opencontainers.image.ref.name="8.0.10-debian-12-r1" \
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/mongodb" \
org.opencontainers.image.title="mongodb" \
org.opencontainers.image.vendor="Broadcom, Inc." \
@ -32,7 +32,7 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
"wait-for-port-1.0.8-16-linux-${OS_ARCH}-debian-12" \
"render-template-1.0.7-16-linux-${OS_ARCH}-debian-12" \
"mongodb-shell-2.5.2-0-linux-${OS_ARCH}-debian-12" \
"mongodb-8.0.10-0-linux-${OS_ARCH}-debian-12" \
"mongodb-8.0.10-1-linux-${OS_ARCH}-debian-12" \
) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
@ -47,6 +47,7 @@ RUN apt-get update && apt-get upgrade -y && \
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives
RUN chmod g+rwX /opt/bitnami
RUN find / -perm /6000 -type f -exec chmod a-s {} \; || true
RUN uninstall_packages curl
COPY rootfs /
RUN /opt/bitnami/scripts/mongodb/postunpack.sh

View File

@ -3,7 +3,7 @@
"arch": "amd64",
"distro": "debian-12",
"type": "NAMI",
"version": "8.0.10-0"
"version": "8.0.10-1"
},
"mongodb-shell": {
"arch": "amd64",

View File

@ -0,0 +1,26 @@
#!/bin/sh
# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
set -eu
n=0
max=2
export DEBIAN_FRONTEND=noninteractive
until [ $n -gt $max ]; do
set +e
(
apt-get autoremove --purge -y "$@"
)
CODE=$?
set -e
if [ $CODE -eq 0 ]; then
break
fi
if [ $n -eq $max ]; then
exit $CODE
fi
echo "apt failed, retrying"
n=$(($n + 1))
done
apt-get clean && rm -rf /var/lib/apt/lists /var/cache/apt/archives

View File

@ -88,7 +88,7 @@ or by modifying the [`docker-compose.yml`](https://github.com/bitnami/containers
mongodb:
...
volumes:
- - 'mongodb_data:/bitnami/mongodb'
- - mongodb_data:/bitnami/mongodb
+ - /path/to/mongodb-persistence:/bitnami/mongodb
...
```
@ -144,11 +144,11 @@ networks:
services:
mongodb:
image: 'bitnami/mongodb:latest'
image: bitnami/mongodb:latest
networks:
- app-tier
myapp:
image: 'YOUR_APPLICATION_IMAGE'
image: YOUR_APPLICATION_IMAGE
networks:
- app-tier
```
@ -515,7 +515,7 @@ version: '2'
services:
mongodb-primary:
image: 'bitnami/mongodb:latest'
image: bitnami/mongodb:latest
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongodb-primary
- MONGODB_REPLICA_SET_MODE=primary
@ -523,10 +523,10 @@ services:
- MONGODB_REPLICA_SET_KEY=replicasetkey123
volumes:
- 'mongodb_master_data:/bitnami'
- mongodb_master_data:/bitnami
mongodb-secondary:
image: 'bitnami/mongodb:latest'
image: bitnami/mongodb:latest
depends_on:
- mongodb-primary
environment:
@ -538,7 +538,7 @@ services:
- MONGODB_REPLICA_SET_KEY=replicasetkey123
mongodb-arbiter:
image: 'bitnami/mongodb:latest'
image: bitnami/mongodb:latest
depends_on:
- mongodb-primary
environment:
@ -567,7 +567,7 @@ version: '2'
services:
mongodb-primary:
image: 'bitnami/mongodb:latest'
image: bitnami/mongodb:latest
environment:
- MONGODB_ADVERTISED_HOSTNAME=mongodb-primary
- MONGODB_REPLICA_SET_MODE=primary
@ -575,10 +575,10 @@ services:
- MONGODB_REPLICA_SET_KEY=replicasetkey123
volumes:
- 'mongodb_master_data:/bitnami'
- mongodb_master_data:/bitnami
mongodb-secondary:
image: 'bitnami/mongodb:latest'
image: bitnami/mongodb:latest
depends_on:
- mongodb-primary
environment:
@ -589,7 +589,7 @@ services:
- MONGODB_REPLICA_SET_KEY=replicasetkey123
mongodb-arbiter:
image: 'bitnami/mongodb:latest'
image: bitnami/mongodb:latest
depends_on:
- mongodb-primary
environment:
@ -755,7 +755,7 @@ or using Docker Compose:
mongodb:
...
volumes:
- 'mongodb_data:/bitnami/mongodb'
- mongodb_data:/bitnami/mongodb
+ - /path/to/mongodb-configuration-persistence:/bitnami/mongodb/conf
...
```