Skip to content

Commit

Permalink
container: Tweak database Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrabovsky committed Jan 19, 2023
1 parent bfccc4d commit 58d6d2c
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions container/Dockerfile_db
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ FROM docker.io/centos/postgresql-12-centos7
USER root

# Adds the semver extension on top of the official image
RUN yum install -y epel-release &&\
yum install -y wget which make rh-postgresql12-postgresql-devel gcc &&\
RUN yum install --assumeyes epel-release && \
yum install --assumeyes gcc make rh-postgresql12-postgresql-devel wget which && \
yum clean all

ENV PG_SEMVER_VERSION=0.32.0
ENV PG_CONFIG=/opt/rh/rh-postgresql12/root/usr/bin/pg_config
RUN cd /tmp/ &&\
wget https://github.com/theory/pg-semver/archive/refs/tags/v0.31.2.tar.gz &&\
tar xvf v0.31.2.tar.gz &&\
cd pg-semver-0.31.2/ &&\
make &&\
RUN cd /tmp/ && \
wget https://github.com/theory/pg-semver/archive/refs/tags/v${PG_SEMVER_VERSION}.tar.gz && \
tar xvf v${PG_SEMVER_VERSION}.tar.gz && \
cd pg-semver-${PG_SEMVER_VERSION}/ && \
make && \
make install

# Run the container as user postgres
Expand Down

0 comments on commit 58d6d2c

Please sign in to comment.