1
0
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:
Budleigh Salterton driving a Miura 2016-03-31 22:06:23 +02:00
parent 5ce063e15a
commit 5f65d68abd
2 changed files with 3 additions and 3 deletions

0
Dockerfile Normal file → Executable file
View File

6
run.sh
View File

@ -11,8 +11,8 @@ TAG=cm-13.0
FORCE_BUILD=0 FORCE_BUILD=0
# Create shared folders # Create shared folders
mkdir -p $SOURCE [[ -e "$SOURCE" ]] || mkdir -p $SOURCE
mkdir -p $CCACHE [[ -e "$CCACHE" ]] || mkdir -p $CCACHE
# Build image if needed # Build image if needed
IMAGE_EXISTS=$(docker images $REPOSITORY) IMAGE_EXISTS=$(docker images $REPOSITORY)
@ -42,7 +42,7 @@ if [[ $IS_RUNNING == "true" ]]; then
elif [[ $IS_RUNNING == "false" ]]; then elif [[ $IS_RUNNING == "false" ]]; then
docker start -i $CONTAINER docker start -i $CONTAINER
else 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 fi
exit $? exit $?