63 lines
3.1 KiB
Docker
63 lines
3.1 KiB
Docker
# Copyright Broadcom, Inc. All Rights Reserved.
|
|
# SPDX-License-Identifier: APACHE-2.0
|
|
|
|
FROM docker.io/bitnami/minideb:bookworm
|
|
|
|
ARG DOWNLOADS_URL="downloads.bitnami.com/files/stacksmith"
|
|
ARG TARGETARCH
|
|
|
|
LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bookworm" \
|
|
org.opencontainers.image.created="2025-09-07T02:14:40Z" \
|
|
org.opencontainers.image.description="Application packaged by Broadcom, Inc." \
|
|
org.opencontainers.image.documentation="https://github.com/bitnami/containers/tree/main/bitnami/pgpool/README.md" \
|
|
org.opencontainers.image.source="https://github.com/bitnami/containers/tree/main/bitnami/pgpool" \
|
|
org.opencontainers.image.title="pgpool" \
|
|
org.opencontainers.image.vendor="Broadcom, Inc." \
|
|
org.opencontainers.image.version="4.6.3"
|
|
|
|
ENV HOME="/" \
|
|
OS_ARCH="${TARGETARCH:-amd64}" \
|
|
OS_FLAVOUR="debian-12" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl ldap-utils libaudit1 libbsd0 libcap-ng0 libcom-err2 libcrypt1 libedit2 libffi8 libgcc-s1 libgmp10 libgnutls30 libgssapi-krb5-2 libhashkit2 libhogweed6 libicu72 libidn2-0 libk5crypto3 libkeyutils1 libkrb5-3 libkrb5support0 libldap-2.5-0 libldap-common liblz4-1 liblzma5 libmd0 libmemcached11 libnettle8 libnss-ldapd libp11-kit0 libpam-ldapd libpam0g libpq5 libsasl2-2 libssl3 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 nslcd procps zlib1g
|
|
RUN --mount=type=secret,id=downloads_url,env=SECRET_DOWNLOADS_URL \
|
|
DOWNLOADS_URL=${SECRET_DOWNLOADS_URL:-${DOWNLOADS_URL}} ; \
|
|
mkdir -p /tmp/bitnami/pkg/cache/ ; cd /tmp/bitnami/pkg/cache/ || exit 1 ; \
|
|
COMPONENTS=( \
|
|
"wait-for-port-1.0.10-1-linux-${OS_ARCH}-debian-12" \
|
|
"postgresql-client-17.6.0-0-linux-${OS_ARCH}-debian-12" \
|
|
"pgpool-4.6.3-0-linux-${OS_ARCH}-debian-12" \
|
|
) ; \
|
|
for COMPONENT in "${COMPONENTS[@]}"; do \
|
|
if [ ! -f "${COMPONENT}.tar.gz" ]; then \
|
|
curl -SsLf "https://${DOWNLOADS_URL}/${COMPONENT}.tar.gz" -O ; \
|
|
curl -SsLf "https://${DOWNLOADS_URL}/${COMPONENT}.tar.gz.sha256" -O ; \
|
|
fi ; \
|
|
sha256sum -c "${COMPONENT}.tar.gz.sha256" ; \
|
|
tar -zxf "${COMPONENT}.tar.gz" -C /opt/bitnami --strip-components=2 --no-same-owner ; \
|
|
rm -rf "${COMPONENT}".tar.gz{,.sha256} ; \
|
|
done
|
|
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/pgpool/postunpack.sh
|
|
ENV APP_VERSION="4.6.3" \
|
|
BITNAMI_APP_NAME="pgpool" \
|
|
IMAGE_REVISION="1" \
|
|
LD_LIBRARY_PATH="/opt/bitnami/common/lib:/opt/bitnami/common/lib64:$LD_LIBRARY_PATH" \
|
|
PATH="/opt/bitnami/common/bin:/opt/bitnami/postgresql/bin:/opt/bitnami/pgpool/bin:/opt/bitnami/common/sbin:$PATH"
|
|
|
|
EXPOSE 5432
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/opt/bitnami/scripts/pgpool/entrypoint.sh" ]
|
|
CMD [ "/opt/bitnami/scripts/pgpool/run.sh" ]
|