11.2.0-debian-9-r22 release

This commit is contained in:
Bitnami Bot 2019-03-08 13:02:00 +00:00
parent 9625d87135
commit 0e4690005d
3 changed files with 15 additions and 15 deletions

View File

@ -14,7 +14,7 @@ RUN chmod -R g+rwX /opt/bitnami/postgresql/conf/
COPY rootfs /
ENV BITNAMI_APP_NAME="postgresql" \
BITNAMI_IMAGE_VERSION="11.2.0-debian-9-r21" \
BITNAMI_IMAGE_VERSION="11.2.0-debian-9-r22" \
LANG="en_US.UTF-8" \
LANGUAGE="en_US:en" \
NAMI_PREFIX="/.nami" \

View File

@ -38,23 +38,23 @@ fi
# allow running custom initialization scripts
if [[ -n $(find /docker-entrypoint-initdb.d/ -type f -regex ".*\.\(sh\|sql\|sql.gz\)") ]] && [[ ! -f /bitnami/postgresql/.user_scripts_initialized ]]; then
info "Loading user files from /docker-entrypoint-initdb.d";
if [[ -n $POSTGRESQL_PASSWORD ]] && [[ $POSTGRESQL_USERNAME == "postgres" ]]; then
if [[ -n $POSTGRESQL_PASSWORD ]]; then
export PGPASSWORD=$POSTGRESQL_PASSWORD
fi
psql=( psql --username postgres )
if [[ $POSTGRESQL_USERNAME == "postgres" ]]; then
psql=( psql -U postgres)
else
psql=( psql -U $POSTGRESQL_USERNAME -d $POSTGRESQL_DATABASE )
fi
postgresqlStart &
info "Initialization: Waiting for PostgreSQL to be available"
postgresql_available=0
for i in {1..60}; do
log "Attempt $i"
if grep "is ready to accept connections" /opt/bitnami/postgresql/logs/postgresql.log > /dev/null; then
postgresql_available=1
break
fi
sleep 10
retries=30
until "${psql[@]}" -h 127.0.0.1 -c "select 1" > /dev/null 2>&1 || [ $retries -eq 0 ]; do
info "Waiting for PostgreSQL server: $((retries--)) remaining attempts..."
sleep 2
done
if [[ $postgresql_available == 0 ]]; then
echo "Error: PostgreSQL is not available after 600 seconds"
if [[ $retries == 0 ]]; then
echo "Error: PostgreSQL is not available after 60 seconds"
exit 1
fi
tmp_file=/tmp/filelist

View File

@ -44,9 +44,9 @@ Learn more about the Bitnami tagging policy and the difference between rolling t
* [`11-ol-7`, `11.2.0-ol-7-r21` (11/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.2.0-ol-7-r21/11/ol-7/Dockerfile)
* [`11-debian-9`, `11.2.0-debian-9-r21`, `11`, `11.2.0`, `11.2.0-r21` (11/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.2.0-debian-9-r21/11/debian-9/Dockerfile)
* [`11-debian-9`, `11.2.0-debian-9-r22`, `11`, `11.2.0`, `11.2.0-r22` (11/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/11.2.0-debian-9-r22/11/debian-9/Dockerfile)
* [`10-ol-7`, `10.7.0-ol-7-r21` (10/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.7.0-ol-7-r21/10/ol-7/Dockerfile)
* [`10-debian-9`, `10.7.0-debian-9-r22`, `10`, `10.7.0`, `10.7.0-r22`, `latest` (10/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.7.0-debian-9-r22/10/debian-9/Dockerfile)
* [`10-debian-9`, `10.7.0-debian-9-r21`, `10`, `10.7.0`, `10.7.0-r21`, `latest` (10/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/10.7.0-debian-9-r21/10/debian-9/Dockerfile)
* [`9.6-ol-7`, `9.6.12-ol-7-r21` (9.6/ol-7/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/9.6.12-ol-7-r21/9.6/ol-7/Dockerfile)
* [`9.6-debian-9`, `9.6.12-debian-9-r21`, `9.6`, `9.6.12`, `9.6.12-r21` (9.6/debian-9/Dockerfile)](https://github.com/bitnami/bitnami-docker-postgresql/blob/9.6.12-debian-9-r21/9.6/debian-9/Dockerfile)