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