Skip to content

Commit 2318622

Browse files
committed
Install postgresql before extensions/repo
1 parent 6ceb2cb commit 2318622

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

cadc-postgresql-dev/Dockerfile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ ARG PGDG=https://download.postgresql.org/pub/repos/yum/reporpms/F-42-x86_64/pgdg
88
ARG PGSERVER="postgresql15-server postgresql15-contrib"
99
ARG PGSPHERE=https://ws-cadc.canfar.net/vault/files/pdowler/rpms/pgsphere15-1.4.2-1.fc42.x86_64.rpm
1010

11-
# install repositories, server, extensions
12-
RUN dnf -y install ${PGDG} \
13-
&& dnf -y install ${PGSERVER} ${PGSPHERE} \
11+
# install server, repositories, extensions. Server first because $PGDG
12+
# requires /var/lib/pgsql to exist first.
13+
RUN dnf -y install ${PGSERVER} \
14+
&& dnf -y install ${PGDG} ${PGSPHERE} \
15+
&& dnf -y install \
1416
&& dnf -y clean all
1517

1618
RUN mkdir -p /config /logs /var/lib/pgsql/15

0 commit comments

Comments
 (0)