{"id":13567581,"url":"https://github.com/Deadolus/android-studio-docker","last_synced_at":"2025-04-04T01:32:32.500Z","repository":{"id":70778861,"uuid":"104035337","full_name":"Deadolus/android-studio-docker","owner":"Deadolus","description":"Android Studio + flutter in Docker. Emulator works too - with or without Display, even over SSH if you forward the display","archived":false,"fork":false,"pushed_at":"2024-05-24T22:11:03.000Z","size":42,"stargazers_count":134,"open_issues_count":6,"forks_count":55,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-11-04T22:37:20.982Z","etag":null,"topics":["android","android-studio","docker","flutter"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Deadolus.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-19T06:28:02.000Z","updated_at":"2024-10-07T12:32:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"e189d7f9-6e99-458d-88ca-051156d0ca41","html_url":"https://github.com/Deadolus/android-studio-docker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deadolus%2Fandroid-studio-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deadolus%2Fandroid-studio-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deadolus%2Fandroid-studio-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Deadolus%2Fandroid-studio-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Deadolus","download_url":"https://codeload.github.com/Deadolus/android-studio-docker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107815,"owners_count":20884793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","android-studio","docker","flutter"],"created_at":"2024-08-01T13:02:35.331Z","updated_at":"2025-04-04T01:32:27.480Z","avatar_url":"https://github.com/Deadolus.png","language":"Shell","funding_links":[],"categories":["Shell"],"sub_categories":[],"readme":"Android-Studio docker container\n============\nComplete Android-Studio in a Docker container.\nYou can even start an Emulator inside it.\n\nIf you don't have a display the Emulator can run with a \"dummy\" display - perfect for continous integration.\n\nTested on Linux only.\n\nBuilding without docker compose\n-------------\nJust run \"./build.sh\", or \"docker build -t deadolus/android-studio .\" directly.\nAn already built version is also on Docker Hub. So you may also run \"docker pull deadolus/android-studio\".\nYou may of course change the name of the container.\n\nRunning without docker compose\n-------------\nRun\n\n\"HOST_DISPLAY=1 ./run.sh\"\n\nor run directly via\n\n\"docker run -i $AOSP_ARGS -v `pwd`/studio-data:/studio-data --privileged --group-add plugdev deadolus/android-studio\"\n\n\nrun.sh has some options which you can set via Environment variables.\n\n* NO_TTY - Do not run docker with -t flag\n* DOCKERHOSTNAME - set Docker Hostname. I use it to run tests headless\n* HOST_USB - Use the USB of the Host (useful if you want your physical device to be recognized by adb inside the container)\n* HOST_NET - Use the network of the host\n* HOST_DISPLAY - Allow the container to use the Display of the host. E.g. Let the emulator run on the Hosts Display environment.\n\nYou may use a Variable like this: \"HOST_NET=1 ./run.sh\"\n\nThe default docker entrypoint tries to start android-studio.\nSo it probably does not make sense to try starting via run.sh without\nHOST_DISPLAY=1.\nIf you just want a shell in the container, without starting Android Studio, run \"./run.sh bash\" to bypass starting Android Studio\n\nRunning and Building with docker compose:\n-------------\n\n1. Comment/uncomment the appropriate lines in the compose.yaml depending on if you are running this natively in linux or in WSL.\n2. To build: `docker compose build android_emulator`\n3. To run: `docker compose run android_emulator`\n\n\n\nAdditional information - continous integration\n-------------\nI included a script under provisioning/ndkTests.sh which demonstrates how you may use this container in a CI environment.\nThe script starts a headless container, if the HOSTNAME variable is set to CI.\nIt then changes in to a directory (workspace/GoogleTestApp) where it builds and installs an app.\nIt parses logcat for lines containing a string (GoogleTest), uninstalls the app and does some analysis on the parsed lines.\nWhile this script probably does not make much sense FOR YOU, it might be useful as a guiding point for you.\n\nContributors\n------------\n[@Deadolus](https://github.com/Deadolus)  \n[@guilhermelinhares](https://github.com/guilhermelinhares)  \n[@mtomcanyi](https://github.com/mtomcanyi)  \n[@Naveenkhegde](https://github.com/Naveenkhegde)  \n[@BenBlumer](https://github.com/BenBlumer)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDeadolus%2Fandroid-studio-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FDeadolus%2Fandroid-studio-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FDeadolus%2Fandroid-studio-docker/lists"}