29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
FROM oraclelinux:7-slim
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
ENV BITNAMI_PKG_CHMOD="-R g+rwX" \
|
|
HOME="/" \
|
|
OS_ARCH="x86_64" \
|
|
OS_FLAVOUR="ol-7" \
|
|
OS_NAME="linux"
|
|
|
|
COPY prebuildfs /
|
|
# Install required system packages and dependencies
|
|
RUN install_packages ca-certificates curl cyrus-sasl-lib glibc gzip hostname keyutils-libs krb5-libs libaio-devel libcom_err libedit libgcc libicu libselinux libstdc++ libuuid libxml2 libxslt ncurses-libs nspr nss nss-softokn-freebl nss-util openldap openssl-libs pcre procps-ng sqlite sudo tar which xz-libs zlib
|
|
RUN . ./libcomponent.sh && component_unpack "postgresql-repmgr" "10.11.0-0" --checksum b98b75abcd50ac99bd66f6aef8b2f5b209ac2deb315b2d9f58c60621da1d426f
|
|
|
|
COPY rootfs /
|
|
RUN rpm -Uvh --nodeps $(repoquery --location nss_wrapper)
|
|
RUN /postunpack.sh
|
|
ENV BITNAMI_APP_NAME="postgresql-repmgr" \
|
|
BITNAMI_IMAGE_VERSION="10.11.0-ol-7-r0" \
|
|
NAMI_PREFIX="/.nami" \
|
|
NSS_WRAPPER_LIB="/usr/lib64/libnss_wrapper.so" \
|
|
PATH="/opt/bitnami/postgresql-repmgr/bin:/opt/bitnami/repmgr/bin:/opt/bitnami/postgresql/bin:$PATH"
|
|
|
|
EXPOSE 5432
|
|
|
|
USER 1001
|
|
ENTRYPOINT [ "/entrypoint.sh" ]
|
|
CMD [ "/run.sh" ]
|