2015-02-01 10:16:46 +07:00
|
|
|
FROM debian:jessie
|
2015-05-04 14:50:16 -04:00
|
|
|
MAINTAINER Matt McCormick "matt.mccormick@kitware.com"
|
2014-10-17 13:42:56 +02:00
|
|
|
|
2016-07-15 12:50:15 -04:00
|
|
|
# Insert this line before "RUN apt-get update" to dynamically
|
|
|
|
# replace httpredir.debian.org with a single working domain
|
|
|
|
# in attempt to "prevent" the "Error reading from server" error.
|
|
|
|
RUN apt-get update && apt-get install -y curl && \
|
|
|
|
sed -i "s/httpredir.debian.org/`curl -s -D - http://httpredir.debian.org/demo/debian/ | awk '/^Link:/ { print $2 }' | sed -e 's@<http://\(.*\)/debian/>;@\1@g'`/" /etc/apt/sources.list
|
|
|
|
|
2014-10-17 13:42:56 +02:00
|
|
|
RUN apt-get update && apt-get -y install \
|
2015-05-04 14:53:41 -04:00
|
|
|
automake \
|
|
|
|
autogen \
|
|
|
|
bash \
|
|
|
|
build-essential \
|
|
|
|
bzip2 \
|
2016-03-02 13:15:41 -05:00
|
|
|
ca-certificates \
|
2015-05-04 14:53:41 -04:00
|
|
|
curl \
|
|
|
|
file \
|
2015-05-04 15:49:21 -04:00
|
|
|
git \
|
2015-05-04 14:53:41 -04:00
|
|
|
gzip \
|
2015-07-22 23:36:02 -04:00
|
|
|
libcurl4-openssl-dev \
|
2015-05-04 15:49:21 -04:00
|
|
|
libssl-dev \
|
2015-05-04 14:53:41 -04:00
|
|
|
make \
|
2015-05-04 15:49:21 -04:00
|
|
|
ncurses-dev \
|
2015-05-04 14:53:41 -04:00
|
|
|
pkg-config \
|
2016-05-27 00:54:02 +02:00
|
|
|
libtool \
|
2015-05-11 11:24:19 -04:00
|
|
|
python \
|
2015-05-04 14:53:41 -04:00
|
|
|
rsync \
|
|
|
|
sed \
|
2016-05-27 00:54:02 +02:00
|
|
|
bison \
|
|
|
|
flex \
|
2015-05-04 14:53:41 -04:00
|
|
|
tar \
|
|
|
|
vim \
|
|
|
|
wget \
|
2016-05-27 00:54:02 +02:00
|
|
|
runit \
|
2016-03-02 13:15:41 -05:00
|
|
|
xz-utils && \
|
|
|
|
apt-get -y clean
|
2015-05-04 15:49:21 -04:00
|
|
|
|
2016-07-04 01:28:47 -04:00
|
|
|
WORKDIR /usr/share
|
|
|
|
RUN git clone https://github.com/nojhan/liquidprompt.git && \
|
|
|
|
cd liquidprompt && \
|
|
|
|
git checkout v_1.11
|
|
|
|
COPY imagefiles/.bashrc /root/
|
|
|
|
|
2015-05-04 15:49:21 -04:00
|
|
|
# Build and install CMake from source.
|
|
|
|
WORKDIR /usr/src
|
|
|
|
RUN git clone git://cmake.org/cmake.git CMake && \
|
2016-05-27 00:54:02 +02:00
|
|
|
cd CMake && \
|
2016-07-10 19:09:10 -04:00
|
|
|
git checkout v3.6.0 && \
|
2016-05-27 00:54:02 +02:00
|
|
|
cd .. && mkdir CMake-build && cd CMake-build && \
|
|
|
|
/usr/src/CMake/bootstrap \
|
|
|
|
--parallel=$(nproc) \
|
|
|
|
--prefix=/usr && \
|
|
|
|
make -j$(nproc) && \
|
|
|
|
./bin/cmake -DCMAKE_USE_SYSTEM_CURL:BOOL=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE:STRING=Release \
|
|
|
|
-DCMAKE_USE_OPENSSL:BOOL=ON . && \
|
|
|
|
make install && \
|
|
|
|
cd .. && \
|
|
|
|
rm -rf CMake*
|
2016-07-04 00:10:36 -04:00
|
|
|
|
2015-05-11 11:24:19 -04:00
|
|
|
# Build and install Ninja from source
|
|
|
|
RUN git clone https://github.com/martine/ninja.git && \
|
2016-05-27 00:54:02 +02:00
|
|
|
cd ninja && \
|
2016-07-04 01:31:25 -04:00
|
|
|
git checkout v1.7.1 && \
|
2016-05-27 00:54:02 +02:00
|
|
|
python ./configure.py --bootstrap && \
|
|
|
|
./ninja && \
|
|
|
|
cp ./ninja /usr/bin/ && \
|
|
|
|
cd .. && rm -rf ninja
|
2015-08-18 17:46:18 +02:00
|
|
|
|
2016-07-15 15:54:39 -04:00
|
|
|
RUN echo "root:root" | chpasswd
|
2015-08-18 17:46:18 +02:00
|
|
|
WORKDIR /build
|
|
|
|
ENTRYPOINT ["/dockcross/entrypoint.sh"]
|
|
|
|
|
|
|
|
COPY imagefiles/entrypoint.sh imagefiles/dockcross /dockcross/
|