common.docker: Fix CMake https download building it against openssl 1.0.2j

See #63
This commit is contained in:
Jean-Christophe Fillion-Robin 2016-11-05 11:24:32 -04:00
parent 39c5f29733
commit 6f7e7b05fd
No known key found for this signature in database
GPG Key ID: 15C1A2812F958BD3

View File

@ -5,7 +5,13 @@ RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
COPY imagefiles/.bashrc /root/ COPY imagefiles/.bashrc /root/
WORKDIR /usr/src WORKDIR /usr/src
RUN git clone git://cmake.org/cmake.git CMake && \ 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 && \
./config && \
make && \
cd .. && \
git clone git://cmake.org/cmake.git CMake && \
cd CMake && \ cd CMake && \
git checkout ab2ae4823c3b60347825da4b851cd4e676f8bed1 && \ git checkout ab2ae4823c3b60347825da4b851cd4e676f8bed1 && \
mkdir /usr/src/CMake-build && \ mkdir /usr/src/CMake-build && \
@ -16,11 +22,13 @@ RUN git clone git://cmake.org/cmake.git CMake && \
make -j$(grep -c processor /proc/cpuinfo) && \ make -j$(grep -c processor /proc/cpuinfo) && \
./bin/cmake \ ./bin/cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \ -DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_USE_OPENSSL:BOOL=ON . && \ -DCMAKE_USE_OPENSSL:BOOL=ON \
-DOPENSSL_ROOT_DIR:PATH=/usr/src/openssl-1.0.2j \
. && \
make install && \ make install && \
cd .. && rm -rf CMake* cd .. && rm -rf CMake* && rm -rf /usr/src/openssl-1.0.2j
RUN git clone "https://github.com/martine/ninja.git" && \ RUN git clone "https://github.com/ninja-build/ninja.git" && \
cd ninja && \ cd ninja && \
git checkout v1.7.1 && \ git checkout v1.7.1 && \
([ -e /opt/python/cp35-cp35m/bin/python ] && /opt/python/cp35-cp35m/bin/python ./configure.py --bootstrap) || python ./configure.py --bootstrap && \ ([ -e /opt/python/cp35-cp35m/bin/python ] && /opt/python/cp35-cp35m/bin/python ./configure.py --bootstrap) || python ./configure.py --bootstrap && \