30 lines
1.5 KiB
Docker
30 lines
1.5 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 glibc gzip hostname keyutils-libs krb5-libs libaio-devel libcom_err libedit libgcc libicu libselinux libstdc++ libuuid libxml2 libxslt ncurses-libs openssl-libs pcre procps-ng sqlite sudo tar which xz-libs zlib
|
|
RUN . ./libcomponent.sh && component_unpack "postgresql-repmgr" "11.5.0-2" --checksum 193853b4ec5c2e86ce0201bcc58bbb7626b92a9ff06e4bc0a3313195f97fa0b3
|
|
RUN curl --silent -L https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64 > /usr/local/bin/gosu && echo 0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7 /usr/local/bin/gosu | sha256sum --check && chmod u+x /usr/local/bin/gosu && mkdir -p /opt/bitnami/licenses && curl --silent -L https://raw.githubusercontent.com/tianon/gosu/master/LICENSE > /opt/bitnami/licenses/gosu-1.11.txt
|
|
|
|
COPY rootfs /
|
|
RUN rpm -Uvh --nodeps $(repoquery --location nss_wrapper)
|
|
RUN /postunpack.sh
|
|
ENV BITNAMI_APP_NAME="postgresql-repmgr" \
|
|
BITNAMI_IMAGE_VERSION="11.5.0-ol-7-r33" \
|
|
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" ]
|