mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
common.docker: Ensure openssl-1.0.2j is available in manylinux and linux images
If images are any of manylinux-x86, manylinux-x64, linux-x86 or linux-x64, OpenSSL libraries are installed in /usr .
This commit is contained in:
parent
3a0f84f977
commit
4bb8f97ffc
@ -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 && \
|
||||
|
Loading…
Reference in New Issue
Block a user