Giter Club home page Giter Club logo

docker-android-studio's Introduction

android studio docker

Docker Pulls Docker Stars Join the chat at https://gitter.im/yongjhih/docker-android-studio

Usage

$ curl -L https://github.com/yongjhih/docker-android-studio/raw/master/docker-android-studio > ~/bin/android-studio
$ chmod a+x ~/bin/android-studio

$ android-studio

Usage with docker-compose

Beta:

wget https://github.com/yongjhih/docker-android-studio/raw/master/docker-compose.yml
docker-compose up android-studio-beta

Stable:

wget https://github.com/yongjhih/docker-android-studio/raw/master/docker-compose.yml
docker-compose up android-studio-stable

Usage without docker-compose

Beta (2.0-beta-2):

docker run -it \
  --privileged \
  -v $HOME/AndroidStudioProjects:/home/ubuntu/AndroidStudioProjects \
  -v $HOME/.android:/home/ubuntu/.android \
  -v $HOME/.AndroidStudioPreview2.0:/home/ubuntu/.AndroidStudioPreview2.0 \
  -v /dev/bus/usb:/dev/bus/usb \
  -v /dev/kvm:/dev/kvm \
  -v $ANDROID_HOME:/opt/android-sdk \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v $XAUTHORITY:/home/ubuntu/.Xauthority \
  --net host \
  yongjhih/android-studio

Stable (1.5.1):

Build (3.1):

docker build -t android-studio .
docker run -it \
  --privileged \
  -v `pwd`/AndroidStudioProjects:/home/ubuntu/AndroidStudioProjects \
  -v `pwd`/.android:/home/ubuntu/.android \
  -v `pwd`/.AndroidStudio3.1:/home/ubuntu/.AndroidStudio3.1 \
  -v `pwd`/.gradle:/home/ubuntu/.gradle \
  -v `pwd`/opt:/opt/android-sdk \
  -v /dev/bus/usb:/dev/bus/usb \
  -v /dev/kvm:/dev/kvm \
  -e DISPLAY=$DISPLAY \
  -v /tmp/.X11-unix:/tmp/.X11-unix \
  -v $XAUTHORITY:/home/ubuntu/.Xauthority \
  --net host \
  android-studio

Ref.

LICENSE

Apache 2.0, 2015 8tory Inc.

docker-android-studio's People

Contributors

geblanco avatar gitter-badger avatar jamesmstone avatar resutoor avatar yongjhih avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-android-studio's Issues

Can not run

$ sudo docker-compose up android-studio-stable

WARNING: The ANDROID_HOME variable is not set. Defaulting to a blank string.
Creating androidstudio_android-studio-stable_1 ...
Creating androidstudio_android-studio-stable_1 ... error
ERROR: for androidstudio_android-studio-stable_1 Cannot create container for service android-studio-stable: b'create .: volume name is too short, names should be at least two alphanumeric characters'
ERROR: for android-studio-stable Cannot create container for service android-studio-stable: b'create .: volume name is too short, names should be at least two alphanumeric characters'
ERROR: Encountered errors while bringing up the project.

I can't install it in mac

Thank you for your docker
but I am getting error message after I am running (on Mac)
docker-compose up android-studio-stable
Error Message:
{create .: "." includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed
ERROR: Encountered errors while bringing up the project.
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.