chore: raise PostgreSQL new beta version check to 16 (#40)

Closes #37

Signed-off-by: Jonathan Gonzalez V <jonathan.abdiel@gmail.com>
Co-authored-by: EnterpriseDB Automated Updates <noreply@enterprisedb.com>
This commit is contained in:
Jonathan Gonzalez V
2022-10-18 08:03:56 +01:00
committed by GitHub
parent 41395898d0
commit 407e534cc6
2 changed files with 11 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
# vim:set ft=dockerfile: # vim:set ft=dockerfile:
# #
# Copyright The CloudNativePG Contributors # Copyright The CloudNativePG Contributors
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
@@ -13,7 +13,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
# #
FROM postgres:15.0-bullseye FROM postgres:15.0-bullseye
# Do not split the description, otherwise we will see a blank space in the labels # Do not split the description, otherwise we will see a blank space in the labels
@@ -26,6 +26,14 @@ LABEL name="PostgreSQL Container Images" \
COPY requirements.txt / COPY requirements.txt /
# Install pgaudit
RUN set -xe; \
apt-get update; \
apt-get install -y --no-install-recommends \
"postgresql-${PG_MAJOR}-pgaudit" ;\
rm -fr /tmp/* ; \
rm -rf /var/lib/apt/lists/*;
# Install barman-cloud # Install barman-cloud
RUN set -xe; \ RUN set -xe; \
apt-get update; \ apt-get update; \

View File

@@ -134,7 +134,7 @@ generate_postgres() {
fi fi
dockerTemplate="Dockerfile.template" dockerTemplate="Dockerfile.template"
if [ "${version}" -gt '14' ]; then if [ "${version}" -gt '15' ]; then
dockerTemplate="Dockerfile-beta.template" dockerTemplate="Dockerfile-beta.template"
fi fi