Deadolus / android-studio-docker

Android Studio + flutter in Docker. Emulator works too - with or without Display, even over SSH if you forward the display
Apache License 2.0
139 stars 57 forks source link

Added docker compose capabilities #15

Closed BenBlumer closed 1 year ago

BenBlumer commented 1 year ago

With this, you can just run

docker compose build android_emulator to build and then run docker compose run android_emulator to run it.

Deadolus commented 1 year ago

Hi @BenBlumer, docker compose support is awesome, thank you very much for adding this to the project. Would you mind adding a section about running android-studio-docker in docker compose mode to the main Readme.md? Please feel free to change other things that are no longer correct in that readme.

Please do not forget to add yourself to the contributors list!

I do currently not use the project myself, so I trust you that you have checked that everything works. I will add the info myself if I do not hear back from you.

Thank you very much for creating such an awesome change,

Deadolus

BenBlumer commented 1 year ago

Done and done.

Thanks for creating this tool!

I should note: I've tested creating an android virtual environment (my use case). The challenge I had to overcome was how Docker was handling the volumes. Namely I had to create the dirs and change the permissions explicitly in the dockerfile. If there are any issues with other use cases and docker compose, it's likely that this step needs to be repeated.

Deadolus commented 1 year ago

Thank you very much for your help improving the tool!