Skip to content

Commit 9b4cc8f

Browse files
committed
Linux: improve ccache caching
Use consistent source paths.
1 parent 0773285 commit 9b4cc8f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

linux/support/build-script-docker-entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@ if $SHOW_TASKS; then
2020
else
2121
export PASSENGER_DIR=/passenger
2222
export CACHE_DIR=/cache
23+
export WORK_DIR=/work
2324
export OUTPUT_DIR=/output
2425
export IN_HOLY_BUILD_BOX=true
2526
if [[ -e /nginx ]]; then
2627
export NGINX_DIR=/nginx
2728
fi
2829

2930
export USE_CCACHE=true
31+
export CCACHE_BASEDIR=/work
3032
export CCACHE_SLOPPINESS=time_macros
3133
export CCACHE_NOHASHDIR=true
3234
unset CCACHE_HASHDIR
3335

36+
run mkdir /work
37+
run chown builder: /cache /work
3438
run setuser builder mkdir -p "$CCACHE_DIR"
35-
run chown builder: /cache "$CCACHE_DIR"
39+
run chown builder: /cache /work "$CCACHE_DIR"
3640

3741
run_exec setuser builder \
3842
/usr/local/rvm/bin/rvm-exec ruby-$LAST_RUBY_VERSION \

0 commit comments

Comments
 (0)