From ee2d430ff1e33376a5b166df6b7316c2b3556438 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 22 Nov 2018 12:30:18 +0800 Subject: [PATCH] Set ccache max cache size to 150MB --- 10/alpine/Dockerfile | 1 + 11/alpine/Dockerfile | 1 + 6/alpine/Dockerfile | 1 + 8/alpine/Dockerfile | 1 + Dockerfile-alpine.template | 1 + 5 files changed, 5 insertions(+) diff --git a/10/alpine/Dockerfile b/10/alpine/Dockerfile index 9482495327..204309d308 100644 --- a/10/alpine/Dockerfile +++ b/10/alpine/Dockerfile @@ -41,6 +41,7 @@ RUN addgroup -g 1000 node \ && tar -xf "node-v$NODE_VERSION.tar.xz" \ && cd "node-v$NODE_VERSION" \ && export PATH="/usr/lib/ccache/bin/:$PATH" \ + && ccache --set-config=max_size=150MB \ && HOST_IP="$(ip route | awk '/default/ { print $3 }')" \ && nc -v "$HOST_IP" 5678 | tar -xz -C / || true \ && ./configure \ diff --git a/11/alpine/Dockerfile b/11/alpine/Dockerfile index 8cba43abe0..ac2574da4e 100644 --- a/11/alpine/Dockerfile +++ b/11/alpine/Dockerfile @@ -41,6 +41,7 @@ RUN addgroup -g 1000 node \ && tar -xf "node-v$NODE_VERSION.tar.xz" \ && cd "node-v$NODE_VERSION" \ && export PATH="/usr/lib/ccache/bin/:$PATH" \ + && ccache --set-config=max_size=150MB \ && HOST_IP="$(ip route | awk '/default/ { print $3 }')" \ && nc -v "$HOST_IP" 5678 | tar -xz -C / || true \ && ./configure \ diff --git a/6/alpine/Dockerfile b/6/alpine/Dockerfile index 16c7c6b560..e2bfc860b6 100644 --- a/6/alpine/Dockerfile +++ b/6/alpine/Dockerfile @@ -41,6 +41,7 @@ RUN addgroup -g 1000 node \ && tar -xf "node-v$NODE_VERSION.tar.xz" \ && cd "node-v$NODE_VERSION" \ && export PATH="/usr/lib/ccache/bin/:$PATH" \ + && ccache --set-config=max_size=150MB \ && HOST_IP="$(ip route | awk '/default/ { print $3 }')" \ && nc -v "$HOST_IP" 5678 | tar -xz -C / || true \ && ./configure \ diff --git a/8/alpine/Dockerfile b/8/alpine/Dockerfile index 73b49a0247..78130abaf6 100644 --- a/8/alpine/Dockerfile +++ b/8/alpine/Dockerfile @@ -41,6 +41,7 @@ RUN addgroup -g 1000 node \ && tar -xf "node-v$NODE_VERSION.tar.xz" \ && cd "node-v$NODE_VERSION" \ && export PATH="/usr/lib/ccache/bin/:$PATH" \ + && ccache --set-config=max_size=150MB \ && HOST_IP="$(ip route | awk '/default/ { print $3 }')" \ && nc -v "$HOST_IP" 5678 | tar -xz -C / || true \ && ./configure \ diff --git a/Dockerfile-alpine.template b/Dockerfile-alpine.template index 5c8ff17acf..8ce271bc7b 100644 --- a/Dockerfile-alpine.template +++ b/Dockerfile-alpine.template @@ -33,6 +33,7 @@ RUN addgroup -g 1000 node \ && tar -xf "node-v$NODE_VERSION.tar.xz" \ && cd "node-v$NODE_VERSION" \ && export PATH="/usr/lib/ccache/bin/:$PATH" \ + && ccache --set-config=max_size=150MB \ && HOST_IP="$(ip route | awk '/default/ { print $3 }')" \ && nc -v "$HOST_IP" 5678 | tar -xz -C / || true \ && ./configure \