Skip to content

Commit

Permalink
RHINENG-10462: install postgresql from copr
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelMraka committed Jun 4, 2024
1 parent 734844e commit 33dbf92
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ FROM ${BUILDIMG} as buildimg
ARG INSTALL_TOOLS=no

# install build, development and test environment
RUN rpm -Uvh http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-stream-repos-8-4.el8.noarch.rpm \
http://mirror.centos.org/centos/8-stream/BaseOS/x86_64/os/Packages/centos-gpg-keys-8-4.el8.noarch.rpm && \
sed -i 's/^\(enabled.*\)/\1\npriority=200/;' /etc/yum.repos.d/CentOS*.repo
RUN dnf module enable -y postgresql:16 || curl -o /etc/yum.repos.d/postgresql.repo \
https://copr.fedorainfracloud.org/coprs/mmraka/postgresql-16/repo/epel-8/mmraka-postgresql-16-epel-8.repo

RUN dnf module -y enable postgresql:16 && \
dnf install -y go-toolset postgresql diffutils rpm-devel && \
RUN dnf install -y go-toolset postgresql diffutils rpm-devel && \
ln -s /usr/libexec/platform-python /usr/bin/python3

ENV GOPATH=/go \
Expand Down

0 comments on commit 33dbf92

Please sign in to comment.