2016-09-20 06:35:37 +02:00
|
|
|
WORKDIR /usr/share
|
2016-09-20 19:17:15 +02:00
|
|
|
RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
|
|
|
|
cd liquidprompt && \
|
2016-09-20 06:35:37 +02:00
|
|
|
git checkout v_1.11
|
|
|
|
COPY imagefiles/.bashrc /root/
|
|
|
|
|
|
|
|
WORKDIR /usr/src
|
2016-11-18 21:30:03 +01:00
|
|
|
|
|
|
|
|
2016-11-05 16:24:32 +01:00
|
|
|
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 && \
|
2016-11-19 20:32:20 +01:00
|
|
|
WRAPPER=$( [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ] && echo "linux32" || echo "") && \
|
|
|
|
CONFIG_FLAG=$( [ "$DEFAULT_DOCKCROSS_IMAGE" = "dockcross/manylinux-x86" ] && echo "-m32" || echo "") && \
|
2016-11-18 21:30:03 +01:00
|
|
|
${WRAPPER} ./config --prefix=/usr $CONFIG_FLAG && \
|
2016-11-05 22:55:58 +01:00
|
|
|
${WRAPPER} make && \
|
2016-11-18 21:30:03 +01:00
|
|
|
( \
|
|
|
|
( echo $DEFAULT_DOCKCROSS_IMAGE | grep -E "linux-x(86|64)" ) && \
|
|
|
|
${WRAPPER} make install || \
|
|
|
|
echo "Skipping OpenSSL installation" \
|
|
|
|
) && \
|
2016-11-05 16:24:32 +01:00
|
|
|
cd .. && \
|
|
|
|
git clone git://cmake.org/cmake.git CMake && \
|
2016-11-03 17:35:22 +01:00
|
|
|
cd CMake && \
|
|
|
|
git checkout ab2ae4823c3b60347825da4b851cd4e676f8bed1 && \
|
|
|
|
mkdir /usr/src/CMake-build && \
|
|
|
|
cd /usr/src/CMake-build && \
|
2016-11-05 22:55:58 +01:00
|
|
|
${WRAPPER} /usr/src/CMake/bootstrap \
|
2016-11-03 17:35:22 +01:00
|
|
|
--parallel=$(grep -c processor /proc/cpuinfo) \
|
|
|
|
--prefix=/usr && \
|
2016-11-05 22:55:58 +01:00
|
|
|
${WRAPPER} make -j$(grep -c processor /proc/cpuinfo) && \
|
|
|
|
${WRAPPER} ./bin/cmake \
|
2016-11-03 17:35:22 +01:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
2016-11-05 16:24:32 +01:00
|
|
|
-DCMAKE_USE_OPENSSL:BOOL=ON \
|
|
|
|
-DOPENSSL_ROOT_DIR:PATH=/usr/src/openssl-1.0.2j \
|
|
|
|
. && \
|
2016-11-05 22:55:58 +01:00
|
|
|
${WRAPPER} make install && \
|
2016-11-19 20:39:25 +01:00
|
|
|
cd .. && rm -rf CMake* && rm -rf /usr/src/openssl-1.0.2j*
|
2016-09-20 06:35:37 +02:00
|
|
|
|
2016-11-05 16:24:32 +01:00
|
|
|
RUN git clone "https://github.com/ninja-build/ninja.git" && \
|
2016-09-20 19:17:15 +02:00
|
|
|
cd ninja && \
|
|
|
|
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 && \
|
|
|
|
./ninja && \
|
|
|
|
cp ./ninja /usr/bin/ && \
|
2016-09-20 06:35:37 +02:00
|
|
|
cd .. && rm -rf ninja
|
|
|
|
COPY imagefiles/cmake.sh /usr/local/bin/cmake
|
|
|
|
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake
|
|
|
|
|
|
|
|
RUN echo "root:root" | chpasswd
|
|
|
|
WORKDIR /work
|
|
|
|
ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
|
|
|
|
|
|
|
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/
|