fix android-studio startup

This commit is contained in:
Frieder Schlesier 2016-03-17 12:04:41 +01:00
parent 6bea82ef45
commit f4f9afacab
1 changed files with 3 additions and 2 deletions

View File

@ -38,11 +38,11 @@ relies_on() {
android-studio() {
del_stopped android-studio
CURRENT_DIR="/home/fschl/projects/android"
for dir in .studio-home .gradle .idea .android/avd; do
mkdir -p .docker-dev/$dir
mkdir -p $CURRENT_DIR/.docker-dev/$dir
done
CURRENT_DIR=`pwd`
docker run -it \
--net=host \
--name android-studio \
@ -50,6 +50,7 @@ android-studio() {
-e DISPLAY \
-e GRADLE_USER_HOME='/workspace/.docker-dev/.gradle/home' \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $CURRENT_DIR/projects:/home/developer/AndroidStudioProjects \
-v $CURRENT_DIR:/workspace \
-v $CURRENT_DIR/.docker-dev/.studio-home:/home/developer/.AndroidStudio1.2 \
-v $CURRENT_DIR/.docker-dev/.android/avd:/home/developer/.android/avd \