forked from repo-mirrors/cnpg-postgres-containers
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:
committed by
GitHub
parent
41395898d0
commit
407e534cc6
@@ -1,5 +1,5 @@
|
||||
# vim:set ft=dockerfile:
|
||||
#
|
||||
#
|
||||
# Copyright The CloudNativePG Contributors
|
||||
#
|
||||
# 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.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
#
|
||||
FROM postgres:15.0-bullseye
|
||||
|
||||
# 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 /
|
||||
|
||||
# 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
|
||||
RUN set -xe; \
|
||||
apt-get update; \
|
||||
|
@@ -134,7 +134,7 @@ generate_postgres() {
|
||||
fi
|
||||
|
||||
dockerTemplate="Dockerfile.template"
|
||||
if [ "${version}" -gt '14' ]; then
|
||||
if [ "${version}" -gt '15' ]; then
|
||||
dockerTemplate="Dockerfile-beta.template"
|
||||
fi
|
||||
|
||||
|
Reference in New Issue
Block a user