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
|
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 $?
|
||||||
|
Loading…
Reference in New Issue
Block a user