diff --git a/Dockerfile b/Dockerfile old mode 100644 new mode 100755 diff --git a/run.sh b/run.sh index 6a359a8..861b8dc 100755 --- a/run.sh +++ b/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 $?