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:
parent
3047d501cd
commit
919db8dcee
@ -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
3
run.sh
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user