Skip to content

Docker container allowing you to build and test your Android project.

Notifications You must be signed in to change notification settings

groovytron/android-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker container for Android build

Build Status

Docker container allowing you to build and test your Android project.

Supported tags and respective Dockerfile links

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.

Use the container

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.

Building the project interactively in the container

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

Contribute to the project

Upgrading an image or create a new up-to-date