added clang to package dependencies, moved ccache to ssd
This commit is contained in:
parent
83b34ae1b5
commit
90e82aee20
3 changed files with 7 additions and 5 deletions
|
@ -2,7 +2,7 @@ FROM debian:testing
|
|||
|
||||
RUN apt-get update ;\
|
||||
apt-get install -y --no-install-recommends \
|
||||
cmake ninja-build git ca-certificates clang-8 lld-8 ccache python python3 build-essential \
|
||||
cmake ninja-build git ca-certificates clang-8 lld-8 clang ccache python python3 build-essential \
|
||||
clang-tidy-8 clang-format-8 \
|
||||
python-psutil arcanist zip \
|
||||
openjdk-11-jdk \
|
||||
|
@ -32,8 +32,7 @@ RUN chown -R ${user}:${user} /home/${user} ;\
|
|||
chmod 700 /home/${user}/.ssh
|
||||
|
||||
WORKDIR /home/${user}
|
||||
ENV CC=clang-8
|
||||
ENV CXX=clang++-8
|
||||
ENV CCACHE_PATH=/mnt/disks/ssd0/ccache
|
||||
|
||||
EXPOSE 22
|
||||
CMD ["/scripts/start_agent.sh"]
|
||||
|
|
|
@ -20,8 +20,11 @@ AGENT_ROOT="${SSD_ROOT}/agent"
|
|||
mkdir -p "${AGENT_ROOT}"
|
||||
chown -R jenkins:jenkins "${AGENT_ROOT}"
|
||||
|
||||
# prepare folder for ccache
|
||||
mkdir -p "${CCACHE_PATH}"
|
||||
chown -R jenkins:jenkins "${CCACHE_PATH}"
|
||||
|
||||
# TODO(kuhnel): wipe the disk on startup
|
||||
# TODO(kuhnel): move ccache to SDD
|
||||
|
||||
# start ssh server
|
||||
/usr/sbin/sshd -D
|
|
@ -3,7 +3,7 @@ VOLUME ["/ccache"]
|
|||
|
||||
RUN apt-get update ;\
|
||||
apt-get install -y --no-install-recommends \
|
||||
cmake ninja-build git ca-certificates clang-8 lld-8 ccache python python3 build-essential \
|
||||
cmake ninja-build git ca-certificates clang-8 lld-8 clang ccache python python3 build-essential \
|
||||
clang-tidy-8 clang-format-8 \
|
||||
python-psutil arcanist zip \
|
||||
openjdk-11-jdk \
|
||||
|
|
Loading…
Reference in a new issue