Skip to content

Commit 97d73a8

Browse files
committed
update base-dockerfile for rocky10
1 parent f21048b commit 97d73a8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

docker/base/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
ARG BASE_IMAGE
22
ARG IMAGE_REPOSITORY
33
ARG PATH
4+
ARG BASEOS
45
FROM $BASE_IMAGE
56

67
ARG PACKAGER
@@ -9,7 +10,6 @@ MAINTAINER CYBERTEC PostgreSQL International GmbH
910
LABEL vendor="CYBERTEC PostgreSQL International GmbH" url="https://www.cybertec-postgresql.com"
1011
LABEL 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

1414
RUN ${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)
2930
RUN ${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

0 commit comments

Comments
 (0)