1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00

fix user permission specific problems and add comments

This commit is contained in:
Benedikt Heine 2017-05-30 19:38:12 +02:00
parent 3047d501cd
commit 919db8dcee
3 changed files with 8 additions and 3 deletions

View File

@ -88,7 +88,7 @@ RUN chown -R build:build /home/build
VOLUME /home/build/android VOLUME /home/build/android
VOLUME /srv/ccache VOLUME /srv/ccache
CMD /home/build/startup.sh
USER build USER build
WORKDIR /home/build/android WORKDIR /home/build/android
CMD /home/build/startup.sh

3
run.sh
View File

@ -30,6 +30,9 @@ while [[ $# > 0 ]]; do
done done
# Create shared folders # Create shared folders
# Although Docker would create non-existing directories on the fly,
# we need to have them owned by the user (and not root), to be able
# to write in them, which is a necessity for startup.sh
mkdir -p $SOURCE mkdir -p $SOURCE
mkdir -p $CCACHE mkdir -p $CCACHE

View File

@ -6,7 +6,9 @@ if [ ! -f ${CCACHE_DIR}/ccache.conf ]; then
ccache -M ${CCACHE_SIZE} ccache -M ${CCACHE_SIZE}
fi fi
export USER="build" # in Docker, the USER variable is unset by default
# but some programs (like jack toolchain) rely on it
export USER="$(whoami)"
# Launch screen session # Launch screen session
screen -s /bin/bash screen -s /bin/bash