Skip to content

Commit 3a961ec

Browse files
committed
CCache doesn't seem to be working -- add this in the entrypoint
1 parent a1beead commit 3a961ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ COPY ssh_config /root/.ssh/config
3535
# considered to be ephemeral
3636
VOLUME ["/tmp/ccache", "/aosp"]
3737

38-
# Improve rebuild performance by enabling compiler cache
39-
ENV USE_CCACHE 1
40-
ENV CCACHE_DIR /tmp/ccache
41-
4238
# Work in the build directory, repo is expected to be init'd here
4339
WORKDIR /aosp
4440

utils/docker_entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ set -e
1717
if [ -z ${USER_ID+x} ]; then USER_ID=1000; fi
1818
if [ -z ${GROUP_ID+x} ]; then GROUP_ID=1000; fi
1919

20+
# ccache
21+
export CCACHE_DIR=/tmp/ccache
22+
export USE_CCACHE=1
23+
2024
msg="docker_entrypoint: Creating user UID/GID [$USER_ID/$GROUP_ID]" && echo $msg
2125
groupadd -g $GROUP_ID -r aosp && \
2226
useradd -u $USER_ID --create-home -r -g aosp aosp

0 commit comments

Comments
 (0)