base,manylinux-x64: Use sed for Dockerfile composition

Suggested-by: Jean-Christophe Fillion-Robin <jchris.fillionr@kitware.com>
This commit is contained in:
Matt McCormick
2016-09-20 13:17:15 -04:00
parent ed2ae68b7b
commit b596ca6cd8
4 changed files with 60 additions and 64 deletions

View File

@ -1,35 +1,31 @@
#ifdef linux
#undef linux
#endif
WORKDIR /usr/share
RUN git clone "https://github.com/nojhan/liquidprompt.git" && \\
cd liquidprompt && \\
RUN git clone "https://github.com/nojhan/liquidprompt.git" && \
cd liquidprompt && \
git checkout v_1.11
COPY imagefiles/.bashrc /root/
WORKDIR /usr/src
RUN git clone "git://cmake.org/cmake.git" CMake && \\
cd CMake && \\
git checkout v3.6.1 && \\
cd .. && mkdir CMake-build && cd CMake-build && \\
/usr/src/CMake/bootstrap \\
--parallel=$(nproc) \\
--prefix=/usr && \\
make -j$(nproc) && \\
./bin/cmake \\
-DCMAKE_BUILD_TYPE:STRING=Release \\
-DCMAKE_USE_OPENSSL:BOOL=ON . && \\
make install && \\
cd .. && \\
RUN git clone "git://cmake.org/cmake.git" CMake && \
cd CMake && \
git checkout v3.6.1 && \
cd .. && mkdir CMake-build && cd CMake-build && \
/usr/src/CMake/bootstrap \
--parallel=$(nproc) \
--prefix=/usr && \
make -j$(nproc) && \
./bin/cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_USE_OPENSSL:BOOL=ON . && \
make install && \
cd .. && \
rm -rf CMake*
RUN git clone "https://github.com/martine/ninja.git" && \\
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/ && \\
RUN git clone "https://github.com/martine/ninja.git" && \
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/ && \
cd .. && rm -rf ninja
COPY imagefiles/cmake.sh /usr/local/bin/cmake
COPY imagefiles/ccmake.sh /usr/local/bin/ccmake