Skip to content

Commit

Permalink
Upgrade PostgreSQL from 10 to 13
Browse files Browse the repository at this point in the history
  • Loading branch information
mayorova committed Mar 15, 2023
1 parent c7172af commit f9ccd74
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions openshift/system/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,17 @@ RUN yum-config-manager --save --setopt=cbs.centos.org_repos_sclo7-rh-ruby26-rh-c
&& rpm -Uvh https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm \
&& yum -y update \
&& yum remove -y postgresql \
&& yum install -y epel-release \
&& yum -y install centos-release-scl-rh \
ImageMagick \
ImageMagick-devel \
unixODBC-devel \
mysql \
postgresql10 postgresql10-devel postgresql10-libs \
llvm5.0-devel \
postgresql13 postgresql13-devel postgresql13-libs \
file \
$NODEJS_SCL \
$GIT_SCL \
&& yum install -y epel-release \
&& yum -y clean all

# Install sphinx search
Expand All @@ -59,7 +60,7 @@ ENV BASH_ENV=/opt/system/etc/scl_enable \
RUN export ${BUNDLER_ENV} >/dev/null\
&& source /opt/system/etc/scl_enable \
&& gem install bundler --version 2.2.25 \
&& bundle config build.pg --with-pg-config=/usr/pgsql-10/bin/pg_config \
&& bundle config build.pg --with-pg-config=/usr/pgsql-13/bin/pg_config \
&& bundle install --deployment --jobs $(grep -c processor /proc/cpuinfo) --retry=5

RUN chgrp root /opt/system/
Expand Down

0 comments on commit f9ccd74

Please sign in to comment.