mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 04:14:34 +03:00
50 lines
1.2 KiB
Groff
50 lines
1.2 KiB
Groff
# Container for building and testing cmake-examples with CMake 3.10.3
|
|
FROM ubuntu:16.04
|
|
MAINTAINER Thom Troy
|
|
|
|
RUN apt-get update && apt-get install -y build-essential \
|
|
sudo \
|
|
cmake \
|
|
libboost-all-dev \
|
|
libprotobuf-dev \
|
|
protobuf-compiler \
|
|
clang-3.6 \
|
|
clang-format-3.6 \
|
|
ninja-build \
|
|
wget \
|
|
git \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
RUN cd /usr/local/src \
|
|
&& wget https://cmake.org/files/v3.10/cmake-3.10.3.tar.gz \
|
|
&& tar xvf cmake-3.10.3.tar.gz \
|
|
&& cd cmake-3.10.3 \
|
|
&& ./bootstrap \
|
|
&& make \
|
|
&& make install \
|
|
&& cd .. \
|
|
&& rm -rf cmake*
|
|
|
|
# cppcheck
|
|
RUN cd /usr/local/src \
|
|
&& wget https://github.com/danmar/cppcheck/archive/1.79.tar.gz \
|
|
&& tar xvf 1.79.tar.gz \
|
|
&& cd cppcheck-1.79 \
|
|
&& mkdir build \
|
|
&& cd build \
|
|
&& cmake .. \
|
|
&& make install \
|
|
&& cd ../.. && rm -rf cppcheck*
|
|
|
|
RUN cd /usr/local/src \
|
|
&& wget https://github.com/tianon/gosu/releases/download/1.10/gosu-amd64 \
|
|
&& mv gosu-amd64 /usr/local/bin/gosu \
|
|
&& chmod +x /usr/local/bin/gosu
|
|
|
|
ADD setup.sh /setup.sh
|
|
RUN chmod +x /setup.sh
|
|
|
|
CMD ["/bin/bash"]
|
|
ENTRYPOINT ["/setup.sh"]
|