mirror of
https://github.com/stucki/docker-lineageos
synced 2024-12-19 17:12:29 -05:00
usb privileged version
This commit is contained in:
parent
5ce063e15a
commit
5f65d68abd
0
Dockerfile
Normal file → Executable file
0
Dockerfile
Normal file → Executable file
6
run.sh
6
run.sh
@ -11,8 +11,8 @@ TAG=cm-13.0
|
||||
FORCE_BUILD=0
|
||||
|
||||
# Create shared folders
|
||||
mkdir -p $SOURCE
|
||||
mkdir -p $CCACHE
|
||||
[[ -e "$SOURCE" ]] || mkdir -p $SOURCE
|
||||
[[ -e "$CCACHE" ]] || mkdir -p $CCACHE
|
||||
|
||||
# Build image if needed
|
||||
IMAGE_EXISTS=$(docker images $REPOSITORY)
|
||||
@ -42,7 +42,7 @@ if [[ $IS_RUNNING == "true" ]]; then
|
||||
elif [[ $IS_RUNNING == "false" ]]; then
|
||||
docker start -i $CONTAINER
|
||||
else
|
||||
docker run -v $SOURCE:$CONTAINER_HOME/android -v $CCACHE:/srv/ccache -i -t --name $CONTAINER $REPOSITORY:$TAG
|
||||
docker run --privileged -v $SOURCE:$CONTAINER_HOME/android -v $CCACHE:/srv/ccache -v /dev/bus/usb:/dev/bus/usb -i -t --name $CONTAINER $REPOSITORY:$TAG
|
||||
fi
|
||||
|
||||
exit $?
|
||||
|
Loading…
Reference in New Issue
Block a user