From 3dbb37ba228144299054c18bef9aea6fb0f58013 Mon Sep 17 00:00:00 2001 From: Bitnami Bot Date: Mon, 3 Apr 2023 11:36:21 +0200 Subject: [PATCH] [bitnami/postgresql] Release 13.10.0-debian-11-r17 (#28895) Signed-off-by: Bitnami Containers Co-authored-by: Fran Mulero --- bitnami/postgresql/13/debian-11/Dockerfile | 8 ++++---- .../prebuildfs/opt/bitnami/.bitnami_components.json | 4 ++-- .../prebuildfs/opt/bitnami/scripts/libservice.sh | 12 +++++++++--- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/bitnami/postgresql/13/debian-11/Dockerfile b/bitnami/postgresql/13/debian-11/Dockerfile index ddaa946339b8..bf7bab1522e5 100644 --- a/bitnami/postgresql/13/debian-11/Dockerfile +++ b/bitnami/postgresql/13/debian-11/Dockerfile @@ -5,10 +5,10 @@ ARG TARGETARCH ARG WITH_ALL_LOCALES="no" LABEL org.opencontainers.image.base.name="docker.io/bitnami/minideb:bullseye" \ - org.opencontainers.image.created="2023-03-28T08:48:29Z" \ + org.opencontainers.image.created="2023-04-01T13:19:38Z" \ org.opencontainers.image.description="Application packaged by VMware, Inc" \ org.opencontainers.image.licenses="Apache-2.0" \ - org.opencontainers.image.ref.name="13.10.0-debian-11-r16" \ + org.opencontainers.image.ref.name="13.10.0-debian-11-r17" \ org.opencontainers.image.title="postgresql" \ org.opencontainers.image.vendor="VMware, Inc." \ org.opencontainers.image.version="13.10.0" @@ -24,8 +24,8 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"] RUN install_packages ca-certificates curl libbsd0 libbz2-1.0 libedit2 libffi7 libgcc-s1 libgmp10 libgnutls30 libhogweed6 libicu67 libidn2-0 libldap-2.4-2 liblz4-1 liblzma5 libmd0 libncurses6 libnettle8 libp11-kit0 libpcre3 libreadline8 libsasl2-2 libsqlite3-0 libssl1.1 libstdc++6 libtasn1-6 libtinfo6 libunistring2 libuuid1 libxml2 libxslt1.1 libzstd1 locales procps zlib1g RUN mkdir -p /tmp/bitnami/pkg/cache/ && cd /tmp/bitnami/pkg/cache/ && \ COMPONENTS=( \ - "gosu-1.16.0-3-linux-${OS_ARCH}-debian-11" \ - "postgresql-13.10.0-7-linux-${OS_ARCH}-debian-11" \ + "gosu-1.16.0-5-linux-${OS_ARCH}-debian-11" \ + "postgresql-13.10.0-8-linux-${OS_ARCH}-debian-11" \ ) && \ for COMPONENT in "${COMPONENTS[@]}"; do \ if [ ! -f "${COMPONENT}.tar.gz" ]; then \ diff --git a/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json b/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json index 42975f9741f4..b48c4f82938b 100644 --- a/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json +++ b/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/.bitnami_components.json @@ -3,12 +3,12 @@ "arch": "amd64", "distro": "debian-11", "type": "NAMI", - "version": "1.16.0-3" + "version": "1.16.0-5" }, "postgresql": { "arch": "amd64", "distro": "debian-11", "type": "NAMI", - "version": "13.10.0-7" + "version": "13.10.0-8" } } \ No newline at end of file diff --git a/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh b/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh index 6fcb304d34cc..d70cf0779ec8 100644 --- a/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh +++ b/bitnami/postgresql/13/debian-11/prebuildfs/opt/bitnami/scripts/libservice.sh @@ -279,7 +279,7 @@ remove_logrotate_conf() { # Flags: # --custom-service-content - Custom content to add to the [service] block # --environment - Environment variable to define (multiple --environment options may be passed) -# --environment-file - Text file with environment variables +# --environment-file - Text file with environment variables (multiple --environment-file options may be passed) # --exec-start - Start command (required) # --exec-start-pre - Pre-start command (optional) # --exec-start-post - Post-start command (optional) @@ -330,7 +330,6 @@ generate_systemd_conf() { | --type \ | --user \ | --group \ - | --environment-file \ | --exec-start \ | --exec-stop \ | --exec-reload \ @@ -368,6 +367,12 @@ generate_systemd_conf() { [[ -n "$environment" ]] && environment+=$'\n' environment+="Environment=${1:?"--environment value is missing"}" ;; + --environment-file) + shift + # It is possible to add multiple environment-file lines + [[ -n "$environment_file" ]] && environment_file+=$'\n' + environment_file+="EnvironmentFile=${1:?"--environment-file value is missing"}" + ;; *) echo "Invalid command line flag ${1}" >&2 return 1 @@ -435,7 +440,8 @@ EOF cat >> "$service_file" <<< "$environment" fi if [[ -n "$environment_file" ]]; then - cat >> "$service_file" <<< "EnvironmentFile=${environment_file}" + # This variable may contain multiple EnvironmentFile= directives + cat >> "$service_file" <<< "$environment_file" fi # Logging if [[ -n "$standard_output" ]]; then