Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Better linking against PostgreSQL 13
Better linking against the PostgreSQL 13 libraries for
the TAP image.
skoranda committed Oct 28, 2021
1 parent 3420909 commit 34f2394
Showing 3 changed files with 18 additions and 3 deletions.
13 changes: 10 additions & 3 deletions comanage-registry-internet2-tier-base/Dockerfile
@@ -20,6 +20,11 @@ FROM centos/python-38-centos7 AS php-build

USER root

RUN yum -y remove \
postgresql-libs \
postgresql-devel \
postgresql

ARG PHP_VERSION=7.3.31
ARG PHP_SRC_URL=https://github.com/php/php-src/archive/php-${PHP_VERSION}.tar.gz

@@ -42,7 +47,8 @@ RUN yum -y update \
mariadb-devel \
openldap-devel \
openssl-devel \
rh-postgresql13-devel \
rh-postgresql13 \
rh-postgresql13-postgresql-devel \
re2c \
wget \
&& yum clean all
@@ -59,6 +65,7 @@ ENV PHP_CPPFLAGS="$PHP_CFLAGS"
ENV PHP_LDFLAGS="-Wl,-O1 -Wl,--hash-style=both -pie"

RUN cd php-src \
&& source scl_source enable rh-postgresql13 \
&& ./buildconf --force \
&& ./configure \
--disable-cgi \
@@ -75,8 +82,8 @@ RUN cd php-src \
--with-openssl \
--with-password-argon2 \
--with-pdo-mysql \
--with-pdo-pgsql \
--with-pgsql \
--with-pdo-pgsql=/opt/rh/rh-postgresql13/root \
--with-pgsql=/opt/rh/rh-postgresql13/root \
--with-sodium \
--with-xsl \
--with-zlib \
5 changes: 5 additions & 0 deletions comanage-registry-internet2-tier/Dockerfile
@@ -44,6 +44,11 @@ ARG COMANAGE_REGISTRY_DIR
ENV COMANAGE_REGISTRY_DIR ${COMANAGE_REGISTRY_DIR:-/srv/comanage-registry}
LABEL comanage_registry_dir=${COMANAGE_REGISTRY_DIR}

RUN yum -y remove \
postgresql-libs \
postgresql-devel \
postgresql

RUN yum -y install epel-release

COPY shibboleth.repo /etc/yum.repos.d/
@@ -56,5 +56,8 @@ ln -s /tmp/logcrond /var/log/cron > "$OUTPUT" 2>&1
exec 1<&-
exec 2<&-

# Enable the SCL PostgreSQL installation
source scl_source enable rh-postgresql13

# Start supervisord
exec /opt/app-root/bin/supervisord -c /usr/local/etc/supervisord.conf

0 comments on commit 34f2394

Please sign in to comment.