From f841b64be85f55bf4473f11b8652f8804016b058 Mon Sep 17 00:00:00 2001 From: barendt Date: Mon, 18 Dec 2023 16:27:33 -0500 Subject: [PATCH] upgrade docker for postgres 15 --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 3b2dfe7..b35b606 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,19 @@ FROM centos:7 +RUN rpm --import https://download.postgresql.org/pub/repos/yum/RPM-GPG-KEY-PGDG + +# Enable PostgreSQL 15 repository +RUN yum -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm + +# Add EPEL repository for additional packages +RUN yum -y install epel-release + ENV ACCEPT_EULA 'y' ENV PATH /opt/mssql-tools/bin/:$PATH RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/msprod.repo && \ yum -y update && \ - yum -y install mssql-tools unixODBC-devel postgresql git && \ + yum -y install mssql-tools unixODBC-devel postgresql15 git && \ yum clean all && \ rm -rf /var/cache/yum