-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (28 loc) · 872 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM jenkins/jnlp-slave
LABEL maintainer="Thomas Brown <tabsoftwareconsulting@gmail.com>"
# set user for modifying image
USER root
RUN apt-get -q -y update && apt-get -q -y install \
clang \
g++ \
\
libboost-dev \
cmake \
make \
\
doxygen \
graphviz \
\
libboost-all-dev \
&& rm -rf /var/lib/apt/lists/*
# restore user
USER jenkins
# set up Boost.Build
RUN echo > "${HOME}/user-config.jam"
RUN echo "using doxygen ;" >> "${HOME}/user-config.jam"
RUN echo "using gcc ;" >> "${HOME}/user-config.jam"
RUN echo "using clang ;" >> "${HOME}/user-config.jam"
RUN echo "using boost : \"\" : <include>/usr/include <library>/usr/lib <layout>system ;" >> "${HOME}/user-config.jam"
# @todo the contrib/boost.jam file is missing from the installation on
# the underlying Docker (Debian Stretch), so add it
COPY boost.jam "${HOME}"