Updated PostgreSQL version to 16

This commit is contained in:
Alexey Pustovalov 2024-05-10 19:24:20 +09:00
parent 3916d7a617
commit 931413fd1b
15 changed files with 81 additions and 10 deletions

View File

@ -44,7 +44,7 @@ RUN set -eux && \
openssl-dev \ openssl-dev \
patch \ patch \
pcre2-dev \ pcre2-dev \
postgresql-dev \ libpq-dev \
gettext \ gettext \
git \ git \
g++ \ g++ \

View File

@ -39,7 +39,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
OpenIPMI-devel \ OpenIPMI-devel \
openldap-devel \ openldap-devel \
sqlite-devel \ sqlite-devel \
postgresql-devel \ postgresql-private-devel \
postgresql-server-devel \
java-17-openjdk-devel \ java-17-openjdk-devel \
git \ git \
gettext \ gettext \
@ -53,6 +54,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \
--nodocs epel-release && \ --nodocs epel-release && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "baseos" \ --enablerepo "baseos" \

View File

@ -41,12 +41,19 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
OpenIPMI-devel \ OpenIPMI-devel \
openldap-devel \ openldap-devel \
sqlite-devel \ sqlite-devel \
postgresql-private-devel \
postgresql-server-devel \ postgresql-server-devel \
java-17-openjdk-devel \ java-17-openjdk-devel \
git \ git \
gettext \ gettext \
unixODBC-devel \ unixODBC-devel \
zlib-devel" && \ zlib-devel" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ol9_baseos_latest" \ --enablerepo "ol9_baseos_latest" \

View File

@ -52,7 +52,8 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
OpenIPMI-devel \ OpenIPMI-devel \
openldap-devel \ openldap-devel \
sqlite-devel \ sqlite-devel \
postgresql-devel \ postgresql-private-devel \
postgresql-server-devel \
java-17-openjdk-devel \ java-17-openjdk-devel \
git \ git \
gettext \ gettext \
@ -62,6 +63,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-9-baseos-rpms" \

View File

@ -53,8 +53,7 @@ RUN set -eux && \
net-snmp-agent-libs \ net-snmp-agent-libs \
openipmi-libs \ openipmi-libs \
pcre2 \ pcre2 \
postgresql-client \ postgresql16-client \
postgresql-libs \
gzip \ gzip \
unixodbc \ unixodbc \
zlib" && \ zlib" && \

View File

@ -56,7 +56,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
openssl-libs \ openssl-libs \
pcre2 \ pcre2 \
postgresql \ postgresql \
postgresql-libs \ postgresql-private-libs \
shadow-utils \ shadow-utils \
zlib \ zlib \
gzip \ gzip \
@ -68,6 +68,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \
--nodocs epel-release && \ --nodocs epel-release && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "baseos" \ --enablerepo "baseos" \

View File

@ -55,10 +55,17 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
openssl-libs \ openssl-libs \
pcre2 \ pcre2 \
postgresql \ postgresql \
postgresql-libs \ postgresql-private-libs \
zlib \ zlib \
gzip \ gzip \
unixODBC" && \ unixODBC" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "ol9_baseos_latest" \
--enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo="*" \ --disablerepo="*" \
--enablerepo="ol9_baseos_latest" \ --enablerepo="ol9_baseos_latest" \

View File

@ -77,7 +77,7 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
OpenIPMI-libs \ OpenIPMI-libs \
pcre2 \ pcre2 \
postgresql \ postgresql \
postgresql-libs \ postgresql-private-libs \
gzip \ gzip \
unixODBC \ unixODBC \
zlib" && \ zlib" && \
@ -85,6 +85,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-9-baseos-rpms" \

View File

@ -51,7 +51,7 @@ RUN set -eux && \
php83-xmlreader \ php83-xmlreader \
php83-xmlwriter \ php83-xmlwriter \
php83-openssl \ php83-openssl \
postgresql-client" && \ postgresql16-client" && \
apk add \ apk add \
--no-cache \ --no-cache \
--clean-protected \ --clean-protected \

View File

@ -57,6 +57,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \
--nodocs epel-release && \ --nodocs epel-release && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "baseos" \ --enablerepo "baseos" \

View File

@ -50,6 +50,13 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
findutils \ findutils \
glibc-locale-source \ glibc-locale-source \
supervisor" && \ supervisor" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "ol9_baseos_latest" \
--enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo="*" \ --disablerepo="*" \
--enablerepo="ol9_baseos_latest" \ --enablerepo="ol9_baseos_latest" \

View File

@ -51,7 +51,7 @@ RUN set -eux && \
php83-xmlreader \ php83-xmlreader \
php83-xmlwriter \ php83-xmlwriter \
php83-openssl \ php83-openssl \
postgresql-client \ postgresql16-client \
supervisor" && \ supervisor" && \
apk add \ apk add \
--no-cache \ --no-cache \

View File

@ -55,6 +55,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
--setopt=keepcache=0 \ --setopt=keepcache=0 \
--best \ --best \
--nodocs epel-release && \ --nodocs epel-release && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "baseos" \ --enablerepo "baseos" \

View File

@ -48,6 +48,13 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
php-xml \ php-xml \
postgresql \ postgresql \
supervisor" && \ supervisor" && \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "ol9_baseos_latest" \
--enablerepo "ol9_appstream" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo="*" \ --disablerepo="*" \
--enablerepo="ol9_baseos_latest" \ --enablerepo="ol9_baseos_latest" \

View File

@ -72,6 +72,12 @@ RUN --mount=type=tmpfs,target=/var/lib/dnf/ \
rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \ rpm -ivh /tmp/epel-release-latest-9.noarch.rpm && \
rm -rf /tmp/epel-release-latest-9.noarch.rpm && \ rm -rf /tmp/epel-release-latest-9.noarch.rpm && \
ARCH_SUFFIX="$(arch)"; \ ARCH_SUFFIX="$(arch)"; \
microdnf -y module enable \
--disablerepo "*" \
--enablerepo "rhel-9-for-$ARCH_SUFFIX-appstream-rpms" \
--setopt=install_weak_deps=0 \
--setopt=keepcache=0 \
postgresql:16 && \
microdnf -y install \ microdnf -y install \
--disablerepo "*" \ --disablerepo "*" \
--enablerepo "ubi-9-baseos-rpms" \ --enablerepo "ubi-9-baseos-rpms" \