mirror of
https://github.com/ttroy50/cmake-examples.git
synced 2025-12-18 20:24:35 +03:00
43 lines
1.0 KiB
Groff
43 lines
1.0 KiB
Groff
# Container for building and testing cmake-examples with default cmake v3.5.1
|
|
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 \
|
|
python3 \
|
|
python3-pip \
|
|
&& pip3 install conan \
|
|
&& apt-get clean \
|
|
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
|
|
|
# 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"]
|