diff --git a/Dockerfile b/Dockerfile index fcfa104ea..e1dee57fb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,18 +15,17 @@ RUN yum install -y httpd httpd-devel gcc gridsite git psmisc less wget logrotate # Changed to install openssl11 since Python requires a OpenSSL 1.1.1 or newer # openssl-devel bzip2-devel libffi-devel zlib-devel -# install python +# install python NB: patch configure to link with OpenSSL 1.1.1 RUN mkdir /tmp/python && cd /tmp/python && \ wget https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz && \ tar -xzf Python-*.tgz && rm -f Python-*.tgz && \ cd Python-* && \ - LDFLAGS="${LDFLAGS} -Wl,-rpath=/lib64/openssl11/" ./configure --enable-optimizations --enable-shared --with-lto --with-openssl=/bin/openssl11 && \ + sed -i 's/PKG_CONFIG openssl /PKG_CONFIG openssl11 /g' configure && \ + ./configure --enable-optimizations --enable-shared --with-lto && \ make altinstall && \ echo /usr/local/lib > /etc/ld.so.conf.d/local.conf && ldconfig && \ cd / && rm -rf /tmp/pyton -# Changed to link Python against OpenSSL 1.1 -# ./configure --enable-optimizations --enable-shared --with-lto && \ # install postgres RUN yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm