From 52cc07831777fdd60182e05e89a49b062553e2d0 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Wed, 20 Nov 2019 17:58:14 +0000 Subject: [PATCH] 11.6.0-ol-7-r5 release --- bitnami/postgresql/11/ol-7/Dockerfile | 5 ++-- .../prebuildfs/usr/local/bin/install_packages | 23 +++++++++++++------ bitnami/postgresql/README.md | 2 +- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/bitnami/postgresql/11/ol-7/Dockerfile b/bitnami/postgresql/11/ol-7/Dockerfile index 1d15c9375abe..dd1152a618c1 100644 --- a/bitnami/postgresql/11/ol-7/Dockerfile +++ b/bitnami/postgresql/11/ol-7/Dockerfile @@ -10,13 +10,14 @@ ENV BITNAMI_PKG_CHMOD="-R g+rwX" \ 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" "11.6.0-0" --checksum bc55723d9a22183faa13e26fd13d3695632c129f70832718a4b02b28562c0335 +RUN . ./libcomponent.sh && component_unpack "postgresql" "11.6.0-1" --checksum 24e9e119e3324f54abfd0bd09dbcba715d63e3d27ef37668d2e28a28989d2428 +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" \ - BITNAMI_IMAGE_VERSION="11.6.0-ol-7-r4" \ + BITNAMI_IMAGE_VERSION="11.6.0-ol-7-r5" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ NAMI_PREFIX="/.nami" \ diff --git a/bitnami/postgresql/11/ol-7/prebuildfs/usr/local/bin/install_packages b/bitnami/postgresql/11/ol-7/prebuildfs/usr/local/bin/install_packages index 4218ab93690a..370f3516f403 100755 --- a/bitnami/postgresql/11/ol-7/prebuildfs/usr/local/bin/install_packages +++ b/bitnami/postgresql/11/ol-7/prebuildfs/usr/local/bin/install_packages @@ -1,20 +1,29 @@ #!/bin/sh -set -e -set -u -n=0 +set -eu + +if [[ -n "oracle-epel-release-el7" ]]; then + if ! yum list installed oracle-epel-release-el7 >/dev/null 2>&1; then + yum -y install oracle-epel-release-el7 >/dev/null 2>&1 + CODE=$? + if (( $CODE != 0 )); then + echo "EPEL repository installation failed" + exit $CODE + fi + fi +fi + max=2 -until [ $n -gt $max ]; do +for ((n = 1 ; n <= max ; n+=1 )); do set +e yum --enablerepo base,updates,ol7_developer_EPEL,ol7_optional_latest install -y "$@" CODE=$? set -e - if [ $CODE -eq 0 ]; then + if (( $CODE == 0 )); then break fi - if [ $n -eq $max ]; then + if (( $n == $max )); then exit $CODE fi echo "yum failed, retrying" - n=$(($n + 1)) done rm -r /var/cache/yum diff --git a/bitnami/postgresql/README.md b/bitnami/postgresql/README.md index ab50ea79bd19..522aebf36fec 100644 --- a/bitnami/postgresql/README.md +++ b/bitnami/postgresql/README.md @@ -47,7 +47,7 @@ Learn more about the Bitnami tagging policy and the difference between rolling t * [`12-ol-7`, `12.1.0-ol-7-r4` (12/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.1.0-ol-7-r4/12/ol-7/Dockerfile) * [`12-debian-9`, `12.1.0-debian-9-r6`, `12`, `12.1.0`, `12.1.0-r6` (12/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.1.0-debian-9-r6/12/debian-9/Dockerfile) * [`12-centos-7`, `12.1.0-centos-7-r7` (12/centos-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.1.0-centos-7-r7/12/centos-7/Dockerfile) -* [`11-ol-7`, `11.6.0-ol-7-r4` (11/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.6.0-ol-7-r4/11/ol-7/Dockerfile) +* [`11-ol-7`, `11.6.0-ol-7-r5` (11/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.6.0-ol-7-r5/11/ol-7/Dockerfile) * [`11-debian-9`, `11.6.0-debian-9-r3`, `11`, `11.6.0`, `11.6.0-r3`, `latest` (11/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.6.0-debian-9-r3/11/debian-9/Dockerfile) * [`11-centos-7`, `11.6.0-centos-7-r6` (11/centos-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.6.0-centos-7-r6/11/centos-7/Dockerfile) * [`10-ol-7`, `10.11.0-ol-7-r4` (10/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.11.0-ol-7-r4/10/ol-7/Dockerfile)