Skip to content

Commit e11148c

Browse files
Installs Required Packages for pgo-scheduler
When building the 'pgo-scheduler' image using ubi8-minimal, the 'findutils' and 'procps' packages are now installed. This ensures the 'find' utility is present as required by the scheduler's liveness probe, while also ensuring the 'pgrep' and 'pidof' utilities are present as required by the scheduler's 'start.sh' script.
1 parent 02f2c25 commit e11148c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/pgo-scheduler/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ ARG BASEVER
33
ARG PREFIX
44
FROM ${PREFIX}/pgo-base:${BASEOS}-${BASEVER}
55

6+
ARG BASEOS
67
ARG PGVERSION
78
ARG BACKREST_VERSION
89
ARG PACKAGER
@@ -30,6 +31,13 @@ RUN if [ "$DFSET" = "rhel" ] ; then \
3031
&& chown -R 2:2 /opt/cpm /pgo-config ; \
3132
fi
3233

34+
RUN if [ "$BASEOS" = "ubi8" ]; then \
35+
${PACKAGER} -y install \
36+
findutils \
37+
procps \
38+
&& ${PACKAGER} -y clean all ; \
39+
fi
40+
3341
ADD bin/pgo-scheduler /opt/cpm/bin
3442
ADD installers/ansible/roles/pgo-operator/files/pgo-configs /default-pgo-config
3543
ADD conf/postgres-operator/pgo.yaml /default-pgo-config/pgo.yaml

0 commit comments

Comments
 (0)