From dd0dc1770e935a12c8b356c45e78835748569cb9 Mon Sep 17 00:00:00 2001 From: dinaharan <44108303+dinaharan@users.noreply.github.com> Date: Thu, 16 Jun 2022 23:58:31 -0700 Subject: [PATCH] Update Dockerfile.rhel8 to fix the postgresql upgrade issue from v12. I was trying to test postgresql upgrade to version 13 from version 12 using RHEL8 based image but it's not working. I see the following env is missing in RHEL8 based postgresql 13 image POSTGRESQL_PREV_VERSION=12 Here is the link to problematic Dockerfile. https://github.com/sclorg/postgresql-container/blob/generated/13/Dockerfile.rhel8 The same works fine with RHEL7 and other images. --- 13/Dockerfile.rhel8 | 1 + 1 file changed, 1 insertion(+) diff --git a/13/Dockerfile.rhel8 b/13/Dockerfile.rhel8 index 38fc01dd..9355aa6d 100644 --- a/13/Dockerfile.rhel8 +++ b/13/Dockerfile.rhel8 @@ -11,6 +11,7 @@ FROM ubi8/s2i-core # PostgreSQL administrative account ENV POSTGRESQL_VERSION=13 \ + POSTGRESQL_PREV_VERSION=12 \ HOME=/var/lib/pgsql \ PGUSER=postgres \ APP_DATA=/opt/app-root