Skip to content

Commit de429a4

Browse files
authored
Merge pull request #29 from robbyoconnor/master
[master] CCache doesn't seem to be working -- add this in the entrypoint
2 parents a1beead + 9e0d100 commit de429a4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
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

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ services:
44
aosp:
55
image: kylemanna/aosp:latest
66
volumes:
7-
- /tmp/ccache:/ccache
7+
- ~/aosp/ccache:/tmp/ccache
88
- ~/aosp:/aosp
99
- ~/.gitconfig:/root/.gitconfig

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)