File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 11ARG BASE_IMAGE
22ARG IMAGE_REPOSITORY
33ARG PATH
4+ ARG BASEOS
45FROM $BASE_IMAGE
56
67ARG PACKAGER
@@ -9,7 +10,6 @@ MAINTAINER CYBERTEC PostgreSQL International GmbH
910LABEL vendor="CYBERTEC PostgreSQL International GmbH" url="https://www.cybertec-postgresql.com"
1011LABEL maintainer="Matthias Groemmer <matthias.groemmer@cybertec.at>"
1112
12- RUN ${PACKAGER} -y install --nodocs https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm vim && ${PACKAGER} -y upgrade
1313
1414RUN ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
1515 bind-utils \
@@ -23,10 +23,15 @@ RUN ${PACKAGER} -y install --nodocs --noplugins --setopt=install_weak_deps=0 \
2323 glibc-langpack-en \
2424 openssh-clients \
2525 openssh-server \
26+ dnf-plugin-config-manager \
2627 && ${PACKAGER} -y clean all ;
2728
2829# Enable CRB-Repo (Powertools)
2930RUN ${PACKAGER} -y config-manager --set-enabled crb
31+ # Add Epel
32+ RUN ${PACKAGER} -y install --nodocs https://dl.fedoraproject.org/pub/epel/epel-release-latest-$(rpm -E %{rhel}).noarch.rpm vim && ${PACKAGER} -y upgrade
3033# Add PostgreSQL-Repo to Base
31- RUN ${PACKAGER} --nodocs --noplugins --setopt=install_weak_deps=0 install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-$(uname -i)/pgdg-redhat-repo-latest.noarch.rpm && ${PACKAGER} -y update && ${PACKAGER} -y clean all
32- RUN ${PACKAGER} -qy module disable postgresql
34+ RUN ${PACKAGER} --nodocs --noplugins --setopt=install_weak_deps=0 install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-$(rpm -E %{rhel})-$(uname -m)/pgdg-redhat-repo-latest.noarch.rpm && ${PACKAGER} -y update && ${PACKAGER} -y clean all
35+ RUN if [ "$BASEOS" = "rocky9" ]; then \
36+ ${PACKAGER} -qy module disable postgresql; \
37+ fi
You can’t perform that action at this time.
0 commit comments