https://github.com/mrmike/simpleandroiddocker
Docker image containing tools for building Android applications.
https://github.com/mrmike/simpleandroiddocker
Last synced: 5 months ago
JSON representation
Docker image containing tools for building Android applications.
- Host: GitHub
- URL: https://github.com/mrmike/simpleandroiddocker
- Owner: mrmike
- License: apache-2.0
- Created: 2018-03-10T22:10:10.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-21T19:36:09.000Z (over 8 years ago)
- Last Synced: 2025-02-12T10:18:32.502Z (over 1 year ago)
- Size: 13.7 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### simple-android-docker
Docker image for building Android applications.
### What's inside?
Image contains basic tools required to build Android applications.
```
* Gradle 4.6
* SDK tools (sdkmanager included)
* android-27
* platform-tools
* build-tools 27.0.3
* Google m2 repository
```
### Building image
To build an image from [`Dockerfile`](https://github.com/mrmike/SimpleAndroidDocker/blob/master/Dockerfile) make sure that Docker is installed and launched and then call
```
docker build -t simple-android-docker .
```
Instead of `simple-android-docker` you can use whatever name you like.
### Docker hub
The image is available on Docker hub: https://hub.docker.com/r/michalmoczulski/simple-android-docker/
To pull an image call
```
docker pull michalmoczulski/simple-android-docker
```
### Building Android app using this image
To build an Android app call from the app folder
```
docker run --rm \
-v $(pwd):/workspace \
-w /workspace \
simple-android-docker gradle clean build
```
### Sample project
There's a sample Android app project showing how this image can be used for Android continuous integration. Take a look at https://github.com/mrmike/android-ci-sample