0

Version bump
All checks were successful
ci/manual Pipeline was successful

and returned Path
This commit is contained in:
0x1def 2024-09-06 18:17:56 +03:00
parent 3837fb4a79
commit 4f920bb366
Signed by: 0x1def
GPG Key ID: D7D7D9B5E72B6AA2
2 changed files with 16 additions and 11 deletions

View File

@ -1,6 +1,6 @@
## Building binaries ## Building binaries
Binaries are available [there](https://dist.flakybit.net/mongodb/) and were built against [Debian 12](https://hub.docker.com/_/debian): Binaries are available [there](https://dist.flakybit.net/mongodb/) and were built against [Debian 12 (bookworm)](https://hub.docker.com/_/debian):
``` ```
apt update apt update
apt install -y build-essential apt install -y build-essential

View File

@ -1,13 +1,14 @@
FROM docker.io/bitnami/minideb:bookworm FROM docker.io/bitnami/minideb:bookworm
ENV APP_NAME="mongodb" \ ENV APP_NAME="mongodb" \
APP_VERSION="7.0.13" \ APP_VERSION="7.0.14" \
HOME="/opt/bitnami/mongodb" \ HOME="/opt/bitnami/mongodb" \
OS_ARCH="amd64" \ OS_ARCH="amd64" \
OS_FLAVOUR="debian-12" \ OS_FLAVOUR="debian-12" \
OS_NAME="linux" \ OS_NAME="linux" \
UID=1001 \ UID=1001 \
GID=1001 GID=1001 \
PATH="/opt/bitnami/common/bin:/opt/bitnami/mongodb/bin:$PATH"
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \ LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
org.opencontainers.image.title="${APP_NAME}" \ org.opencontainers.image.title="${APP_NAME}" \
@ -30,13 +31,14 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; \
cd /tmp/bitnami/pkg/cache/ ; \ cd /tmp/bitnami/pkg/cache/ ; \
# Install Bitnami components # Install Bitnami components
BITNAMI_COMPONENTS=( \ BITNAMI_COMPONENTS=( \
"mongodb-shell-2.2.5-0-linux-${OS_ARCH}-${OS_FLAVOUR}" \ "mongodb-shell-2.3.0-0-linux-${OS_ARCH}-${OS_FLAVOUR}" \
"yq-4.43.1-1-linux-${OS_ARCH}-${OS_FLAVOUR}" \ "yq-4.44.3-2-linux-${OS_ARCH}-${OS_FLAVOUR}" \
"wait-for-port-1.0.7-11-linux-${OS_ARCH}-${OS_FLAVOUR}" \ "wait-for-port-1.0.8-3-linux-${OS_ARCH}-${OS_FLAVOUR}" \
"render-template-1.0.6-11-linux-${OS_ARCH}-${OS_FLAVOUR}" \ "render-template-1.0.7-3-linux-${OS_ARCH}-${OS_FLAVOUR}" \
) ; \ ) ; \
for COMPONENT in "${BITNAMI_COMPONENTS[@]}"; do \ for COMPONENT in "${BITNAMI_COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \
echo "Downloading $COMPONENT" ; \
curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz" -O ; \ curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz" -O ; \
curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz.sha256" -O ; \ curl -SsLf "https://downloads.bitnami.com/files/stacksmith/${COMPONENT}.tar.gz.sha256" -O ; \
fi ; \ fi ; \
@ -47,10 +49,11 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; \
# Install custom MongoDB and tools # Install custom MongoDB and tools
COMPONENTS=( \ COMPONENTS=( \
"mongodb-${APP_VERSION}-0-linux-${OS_ARCH}-${OS_FLAVOUR}" \ "mongodb-${APP_VERSION}-0-linux-${OS_ARCH}-${OS_FLAVOUR}" \
"mongo-tools-100.9.4-linux-${OS_ARCH}" \ "mongo-tools-100.10.0-linux-${OS_ARCH}" \
) ; \ ) ; \
for COMPONENT in "${COMPONENTS[@]}"; do \ for COMPONENT in "${COMPONENTS[@]}"; do \
if [ ! -f "${COMPONENT}.tar.gz" ]; then \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \
echo "Downloading $COMPONENT" ; \
curl -SsLf "https://dist.flakybit.net/mongodb/${COMPONENT}.tar.gz" -O ; \ curl -SsLf "https://dist.flakybit.net/mongodb/${COMPONENT}.tar.gz" -O ; \
curl -SsLf "https://dist.flakybit.net/mongodb/${COMPONENT}.tar.gz.sha256" -O ; \ curl -SsLf "https://dist.flakybit.net/mongodb/${COMPONENT}.tar.gz.sha256" -O ; \
fi ; \ fi ; \
@ -59,9 +62,11 @@ RUN mkdir -p /tmp/bitnami/pkg/cache/ ; \
rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \ rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \
done ; \ done ; \
# Install rust-ping # Install rust-ping
curl -SsLf "https://github.com/syndikat7/mongodb-rust-ping/releases/download/v0.2.1/mongodb-rust-ping-linux-x64.tar.gz" -O ; \ COMPONENT='mongodb-rust-ping-x86_64-unknown-linux-gnu' ; \
tar -zxf "mongodb-rust-ping-linux-x64.tar.gz" -C /usr/bin --no-same-owner ; \ echo "Downloading $COMPONENT" ; \
rm -rf "mongodb-rust-ping-linux-x64.tar.gz" curl -SsLf "https://github.com/syndikat7/mongodb-rust-ping/releases/download/v0.4.0/$COMPONENT.tar.gz" -O ; \
tar -zxf "$COMPONENT.tar.gz" -C /usr/bin --no-same-owner ; \
rm -rf "$COMPONENT.tar.gz"
# Remove unused packages and clean APT cache # Remove unused packages and clean APT cache
RUN apt-get autoremove --purge -y curl && \ RUN apt-get autoremove --purge -y curl && \