diff --git a/murdock-worker/.gitattributes b/murdock-worker/.gitattributes new file mode 100644 index 00000000..1177240f --- /dev/null +++ b/murdock-worker/.gitattributes @@ -0,0 +1 @@ +*.tar.xz filter=lfs diff=lfs merge=lfs -text diff --git a/murdock-worker/Dockerfile b/murdock-worker/Dockerfile index 3fd723db..af860af4 100644 --- a/murdock-worker/Dockerfile +++ b/murdock-worker/Dockerfile @@ -34,9 +34,17 @@ RUN wget https://raw.githubusercontent.com/kaspar030/git-cache/f76c3a5f0e15f08c2 -O /usr/bin/git-cache \ && chmod a+x /usr/bin/git-cache +# install newer ccache package +ARG CCACHE_TGZ=ccache-4.7.4-linux-x86_64.tar.xz +COPY files/${CCACHE_TGZ} / +RUN tar -xvf /${CCACHE_TGZ} --strip-components=1 -C/usr/local/bin && rm /${CCACHE_TGZ} + # install murdock slave startup script COPY murdock_slave.sh /usr/bin/murdock_slave +# create cache folder +RUN mkdir -m777 /cache + ENTRYPOINT ["/bin/bash", "/run.sh"] # By default, run a shell when no command is specified on the docker command line diff --git a/murdock-worker/files/ccache-4.7.4-linux-x86_64.tar.xz b/murdock-worker/files/ccache-4.7.4-linux-x86_64.tar.xz new file mode 100644 index 00000000..ad9d663d --- /dev/null +++ b/murdock-worker/files/ccache-4.7.4-linux-x86_64.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b700cc10884f7faf615203241d34eba7ebe0723f38f6aeb77569a556ff37313 +size 978436