File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,6 @@ COPY ssh_config /root/.ssh/config
35
35
# considered to be ephemeral
36
36
VOLUME ["/tmp/ccache" , "/aosp" ]
37
37
38
- # Improve rebuild performance by enabling compiler cache
39
- ENV USE_CCACHE 1
40
- ENV CCACHE_DIR /tmp/ccache
41
-
42
38
# Work in the build directory, repo is expected to be init'd here
43
39
WORKDIR /aosp
44
40
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ services:
4
4
aosp :
5
5
image : kylemanna/aosp:latest
6
6
volumes :
7
- - /tmp /ccache:/ccache
7
+ - ~/aosp /ccache:/tmp /ccache
8
8
- ~/aosp:/aosp
9
9
- ~/.gitconfig:/root/.gitconfig
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ set -e
17
17
if [ -z ${USER_ID+x} ]; then USER_ID=1000; fi
18
18
if [ -z ${GROUP_ID+x} ]; then GROUP_ID=1000; fi
19
19
20
+ # ccache
21
+ export CCACHE_DIR=/tmp/ccache
22
+ export USE_CCACHE=1
23
+
20
24
msg=" docker_entrypoint: Creating user UID/GID [$USER_ID /$GROUP_ID ]" && echo $msg
21
25
groupadd -g $GROUP_ID -r aosp && \
22
26
useradd -u $USER_ID --create-home -r -g aosp aosp
You can’t perform that action at this time.
0 commit comments