Docker container allowing you to build and test your Android project.
29
,latest
(29/Dockerfile)28
(28/Dockerfile)27
(27/Dockerfile)26
(26/Dockerfile)25
(25/Dockerfile)
Each of these images embeds the following softwares:
Check the build.yaml
to see which version is embedded of each software is installed in the image you are using. We try to keep them up to date when a new version is available.
We recommend you use the dev
user instead of root
when running that container to avoid privilege escalation.
The container's working directory is /home/dev/android_project
so we advise you to mount your project directory onto this place.
To run the container and open a bash in your android project run the following command:
docker run -it --entrypoint /bin/bash --user=dev --volume=<path-to-your-android-project-directory>:/home/dev/android_project groovytron/android:latest
You can then the following commands in the container to check if everything works:
./gradlew
to install appropriate gradle version for your project./gradlew tasks
to list the available tasks./gradlew assembleDebug
to build a debug APK
- If you are struggling to find the last VERSION ID of the command line SDK tools, they are listed here: https://developer.android.com/studio#command-tools.