Merge pull request #72 from jcfr/install-openssl-in-linux-based-images

common.docker: Ensure openssl-1.0.2j is available in manylinux and linux images
This commit is contained in:
Matt McCormick 2016-11-18 20:09:00 -05:00 committed by GitHub
commit 0bc5941bc8

View File

@ -5,13 +5,20 @@ RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
COPY imagefiles/.bashrc /root/
WORKDIR /usr/src
RUN wget https://www.openssl.org/source/openssl-1.0.2j.tar.gz && \
tar -xzvf openssl-1.0.2j.tar.gz && \
cd openssl-1.0.2j && \
WRAPPER=$( [ $DEFAULT_DOCKCROSS_IMAGE = "dockcross/manylinux-x86" ] && echo "linux32" || echo "") && \
CONFIG_FLAG=$( [ $DEFAULT_DOCKCROSS_IMAGE = "dockcross/manylinux-x86" ] && echo "-m32" || echo "") && \
${WRAPPER} ./config $CONFIG_FLAG && \
${WRAPPER} ./config --prefix=/usr $CONFIG_FLAG && \
${WRAPPER} make && \
( \
( echo $DEFAULT_DOCKCROSS_IMAGE | grep -E "linux-x(86|64)" ) && \
${WRAPPER} make install || \
echo "Skipping OpenSSL installation" \
) && \
cd .. && \
git clone git://cmake.org/cmake.git CMake && \
cd CMake && \