Compare commits
2 Commits
master
...
4.4-kitkat
Author | SHA1 | Date | |
---|---|---|---|
|
2a6c558040 | ||
|
3aae115d61 |
@ -30,7 +30,7 @@ ADD https://commondatastorage.googleapis.com/git-repo-downloads/repo /usr/local/
|
||||
RUN chmod 755 /usr/local/bin/*
|
||||
|
||||
# All builds will be done by user aosp
|
||||
RUN useradd --create-home aosp
|
||||
RUN useradd --create-home aosp && echo "aosp:aosp" | chpasswd && adduser aosp sudo
|
||||
ADD gitconfig /home/aosp/.gitconfig
|
||||
ADD ssh_config /home/aosp/.ssh/config
|
||||
RUN chown aosp:aosp /home/aosp/.gitconfig
|
||||
@ -46,3 +46,6 @@ ENV CCACHE_DIR /tmp/ccache
|
||||
# Work in the build directory, repo is expected to be init'd here
|
||||
USER aosp
|
||||
WORKDIR /aosp
|
||||
|
||||
#Relogin to set env var such as USER
|
||||
CMD sudo -i -u aosp
|
||||
|
Loading…
Reference in New Issue
Block a user