2015-02-01 04:16:46 +01:00
|
|
|
FROM debian:jessie
|
2015-05-04 20:50:16 +02:00
|
|
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
2014-10-17 13:42:56 +02:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get -y install \
|
2015-05-04 20:53:41 +02:00
|
|
|
automake \
|
|
|
|
autogen \
|
|
|
|
bash \
|
|
|
|
build-essential \
|
|
|
|
bzip2 \
|
2016-03-02 19:15:41 +01:00
|
|
|
ca-certificates \
|
2015-05-04 20:53:41 +02:00
|
|
|
curl \
|
|
|
|
file \
|
2015-05-04 21:49:21 +02:00
|
|
|
git \
|
2015-05-04 20:53:41 +02:00
|
|
|
gzip \
|
2015-07-23 05:36:02 +02:00
|
|
|
libcurl4-openssl-dev \
|
2015-05-04 21:49:21 +02:00
|
|
|
libssl-dev \
|
2015-05-04 20:53:41 +02:00
|
|
|
make \
|
2015-05-04 21:49:21 +02:00
|
|
|
ncurses-dev \
|
2015-05-04 20:53:41 +02:00
|
|
|
pkg-config \
|
2015-05-11 17:24:19 +02:00
|
|
|
python \
|
2015-05-04 20:53:41 +02:00
|
|
|
rsync \
|
|
|
|
sed \
|
|
|
|
tar \
|
|
|
|
vim \
|
|
|
|
wget \
|
2016-03-02 19:15:41 +01:00
|
|
|
xz-utils && \
|
|
|
|
apt-get -y clean
|
2015-05-04 21:49:21 +02:00
|
|
|
|
|
|
|
# Build and install CMake from source.
|
|
|
|
WORKDIR /usr/src
|
|
|
|
RUN git clone git://cmake.org/cmake.git CMake && \
|
2015-05-11 17:24:19 +02:00
|
|
|
cd CMake && \
|
2016-03-02 19:15:41 +01:00
|
|
|
git checkout v3.4.3 && \
|
2016-03-17 05:13:58 +01:00
|
|
|
cd .. && mkdir CMake-build && cd CMake-build && \
|
2016-03-02 19:15:41 +01:00
|
|
|
/usr/src/CMake/bootstrap \
|
2015-05-04 22:23:12 +02:00
|
|
|
--parallel=$(nproc) \
|
2015-05-04 21:49:21 +02:00
|
|
|
--prefix=/usr && \
|
2015-07-23 05:36:02 +02:00
|
|
|
make -j$(nproc) && \
|
|
|
|
./bin/cmake -DCMAKE_USE_SYSTEM_CURL:BOOL=ON \
|
2016-03-02 19:15:41 +01:00
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
2015-07-23 05:36:02 +02:00
|
|
|
-DCMAKE_USE_OPENSSL:BOOL=ON . && \
|
|
|
|
make install && \
|
2016-03-02 19:15:41 +01:00
|
|
|
cd .. && \
|
|
|
|
rm -rf CMake*
|
2015-05-11 17:24:19 +02:00
|
|
|
|
|
|
|
# Build and install Ninja from source
|
|
|
|
RUN git clone https://github.com/martine/ninja.git && \
|
|
|
|
cd ninja && \
|
2015-07-23 05:36:28 +02:00
|
|
|
git checkout v1.6.0 && \
|
2015-05-11 17:24:19 +02:00
|
|
|
python ./configure.py --bootstrap && \
|
|
|
|
./ninja && \
|
2016-03-02 19:15:41 +01:00
|
|
|
cp ./ninja /usr/bin/ && \
|
|
|
|
cd .. && rm -rf ninja
|