From 744e589c3beecb223e0be76989f9fdcc06b7a458 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Thu, 9 Apr 2020 18:23:37 +0000 Subject: [PATCH] 12.2.0-debian-10-r61 release --- bitnami/postgresql/12/debian-10/Dockerfile | 2 +- .../prebuildfs/opt/bitnami/scripts/libnet.sh | 25 +++++++++++++++++++ bitnami/postgresql/README.md | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/bitnami/postgresql/12/debian-10/Dockerfile b/bitnami/postgresql/12/debian-10/Dockerfile index 9d3346300505..832cb865e714 100644 --- a/bitnami/postgresql/12/debian-10/Dockerfile +++ b/bitnami/postgresql/12/debian-10/Dockerfile @@ -22,7 +22,7 @@ RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && locale-gen COPY rootfs / RUN /opt/bitnami/scripts/postgresql/postunpack.sh ENV BITNAMI_APP_NAME="postgresql" \ - BITNAMI_IMAGE_VERSION="12.2.0-debian-10-r60" \ + BITNAMI_IMAGE_VERSION="12.2.0-debian-10-r61" \ LANG="en_US.UTF-8" \ LANGUAGE="en_US:en" \ NAMI_PREFIX="/.nami" \ diff --git a/bitnami/postgresql/12/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh b/bitnami/postgresql/12/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh index e3145b134ece..6cb749858648 100644 --- a/bitnami/postgresql/12/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh +++ b/bitnami/postgresql/12/debian-10/prebuildfs/opt/bitnami/scripts/libnet.sh @@ -21,6 +21,31 @@ dns_lookup() { getent ahosts "$host" | awk '/STREAM/ {print $1 }' } +######################### +## Wait for a hostname and return the IP +# Arguments: +# $1 - hostname +# $2 - number of retries +# $3 - seconds to wait between retries +# Returns: +# - IP address that corresponds to the hostname +######################### +wait_for_dns_lookup() { + local hostname="${1:?hostname is missing}" + local retries="${2:-5}" + local seconds="${3:-1}" + check_host() { + if [[ $(dns_lookup "$hostname") == "" ]]; then + false + else + true + fi + } + # Wait 10 minutes for the host to be ready + retry_while "check_host ${hostname}" "$retries" "$seconds" + dns_lookup "$hostname" +} + ######################## # Get machine's IP # Arguments: diff --git a/bitnami/postgresql/README.md b/bitnami/postgresql/README.md index 55ddac027b13..dc7821778a8e 100644 --- a/bitnami/postgresql/README.md +++ b/bitnami/postgresql/README.md @@ -44,7 +44,7 @@ Non-root container images add an extra layer of security and are generally recom Learn more about the Bitnami tagging policy and the difference between rolling tags and immutable tags [in our documentation page](https://docs.bitnami.com/containers/how-to/understand-rolling-tags-containers/). -* [`12-debian-10`, `12.2.0-debian-10-r60`, `12`, `12.2.0` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.2.0-debian-10-r60/12/debian-10/Dockerfile) +* [`12-debian-10`, `12.2.0-debian-10-r61`, `12`, `12.2.0` (12/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/12.2.0-debian-10-r61/12/debian-10/Dockerfile) * [`11-debian-10`, `11.7.0-debian-10-r65`, `11`, `11.7.0`, `latest` (11/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.7.0-debian-10-r65/11/debian-10/Dockerfile) * [`10-debian-10`, `10.12.0-debian-10-r60`, `10`, `10.12.0` (10/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.12.0-debian-10-r60/10/debian-10/Dockerfile) * [`9.6-debian-10`, `9.6.17-debian-10-r60`, `9.6`, `9.6.17` (9.6/debian-10/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/9.6.17-debian-10-r60/9.6/debian-10/Dockerfile)