Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ For example they are used as a base to build [container images for tds_fdw Count
Current distributions available:

* openSUSE Leap 16.0
* Rocky Linux 8
* Rocky Linux 9
* Ubuntu 24.04

Current PostgreSQL versions available:
Expand All @@ -20,6 +20,7 @@ Current PostgreSQL versions available:
* 16
* 17
* 18
* 19

# Building images

Expand All @@ -31,7 +32,7 @@ Run:

# Running the images

Tu run, for example PostgreSQL 18 under Rocky Linux 8:
Tu run, for example PostgreSQL 18 under Rocky Linux 9:

```
docker run -t --name test -e "DB_NAME=mydbname" -e "DB_PASS=mydbpassword" juliogonzalez/rockylinux8-postgresql:18
Expand Down
4 changes: 2 additions & 2 deletions manage_images
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ LANG=en_EN
SCRIPT=$(basename ${0})

# Supported distributions and PostgreSQL versions
SUPPORTEDDISTROS="rockylinux8 ubuntu24.04 opensuseleap16.0"
SUPPORTEDPGVERS="13 14 15 16 17 18"
SUPPORTEDDISTROS="rockylinux9 ubuntu24.04 opensuseleap16.0"
SUPPORTEDPGVERS="13 14 15 16 17 18 19-testing"

# Ignored combinations, will exit without errors so the CI does not fail
IGNOREDCOMBINATIONS=""
Expand Down
6 changes: 3 additions & 3 deletions rockylinux8/Dockerfile → rockylinux9/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM docker.io/rockylinux/rockylinux:8
FROM docker.io/rockylinux/rockylinux:9
MAINTAINER Julio Gonzalez Gil <git@juliogonzalez.es>

USER root
Expand Down Expand Up @@ -40,10 +40,10 @@ RUN if [ ! -f /etc/yum.repos.d/postgresql-${POSTGRESQL_VER/./}.repo ]; then \
# PostgreSQL packages (cache will be used for previous steps)
ARG DATE=None

# Generate a list of original packages, add EPEL, enable powertools, disable the default PostgreSQL module, update and install PostgreSQL
# Generate a list of original packages, add EPEL, enable crb, disable the default PostgreSQL module, update and install PostgreSQL
RUN rpm -qa --qf "%{NAME}\n" > /opt/packages-image.txt && \
dnf -y -q install epel-release && \
dnf config-manager --set-enabled powertools && \
dnf config-manager --enable crb && \
dnf -y -q module disable postgresql && \
dnf -y -q update && \
dnf -y -q install \
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[postgresql-<!POSTGRESQL_VER!>]
name=PostgreSQL <!POSTGRESQL_VER!>
baseurl=https://download.postgresql.org/pub/repos/yum/<!POSTGRESQL_VER!>/redhat/rhel-8-x86_64/
baseurl=https://download.postgresql.org/pub/repos/yum/<!POSTGRESQL_VER!>/redhat/rhel-$releasever-x86_64/
enabled=1
gpgcheck=1
gpgkey=https://download.postgresql.org/pub/repos/yum/keys/PGDG-RPM-GPG-KEY-RHEL
5 changes: 4 additions & 1 deletion ubuntu24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@ RUN dpkg --get-selections | grep 'install' | grep -v 'deinstall'|cut -f1 > /opt/
apt-get -qq -o=Dpkg::Use-Pty=0 update > /dev/null && \
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive apt-get -qq -o=Dpkg::Use-Pty=0 -y install ca-certificates && \
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive apt-get -qq -o=Dpkg::Use-Pty=0 -y dist-upgrade > /dev/null && \
[ ${POSTGRESQL_TESTING} -eq 1 ] && TESTING="-testing"; echo "deb https://download.postgresql.org/pub/repos/apt/ noble-pgdg${testing} ${POSTGRESQL_VER} main" >> /etc/apt/sources.list.d/pgdg.list && \
echo "deb https://apt.postgresql.org/pub/repos/apt/ noble-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
[ ${POSTGRESQL_TESTING} -eq 1 ] && TESTING='-snapshot'; \
echo "deb https://apt.postgresql.org/pub/repos/apt/ noble-pgdg${TESTING} ${POSTGRESQL_VER}" >> /etc/apt/sources.list.d/pgdg.list && \
echo 'Package: *\nPin: release o=apt.postgresql.org\nPin-Priority: 800' > /etc/apt/preferences.d/pgdg.pref && \
apt-get -qq -o=Dpkg::Use-Pty=0 update > /dev/null && \
LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 DEBIAN_FRONTEND=noninteractive apt-get -qq -o=Dpkg::Use-Pty=0 -y install \
postgresql-${POSTGRESQL_VER} \
Expand Down