https://github.com/instant-solutions/docker-gitlab-ci-android-runner
A Gitlab CI Runner to build android apps
https://github.com/instant-solutions/docker-gitlab-ci-android-runner
android docker-image dockerfile gitlab-runner
Last synced: 11 months ago
JSON representation
A Gitlab CI Runner to build android apps
- Host: GitHub
- URL: https://github.com/instant-solutions/docker-gitlab-ci-android-runner
- Owner: instant-solutions
- License: apache-2.0
- Created: 2017-04-15T14:45:04.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-24T21:35:34.000Z (over 8 years ago)
- Last Synced: 2025-01-13T17:28:26.452Z (about 1 year ago)
- Topics: android, docker-image, dockerfile, gitlab-runner
- Size: 10.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.MD
- License: LICENSE
Awesome Lists containing this project
README
# instantsolutions/gitlab-ci-android-runner:1.0.3
A docker image with gitlab-ci-multi-runner, which can run android builds.
[](https://hub.docker.com/r/instantsolutions/gitlab-ci-android-runner)
[](https://hub.docker.com/r/instantsolutions/gitlab-ci-android-runner)
[](https://hub.docker.com/r/instantsolutions/gitlab-ci-android-runner)
[](https://microbadger.com/images/instantsolutions/gitlab-ci-android-runner "Get your own image badge on microbadger.com")
## Whats included
* Android Platform Level 7-26
* Build Tools 19.1.0, 20.0.0, 21.1.2, 22.0.1, 23.0.3, 24.0.3, 25.0.2, 26.0.0
* Google play services
* Google repository
* Android Support Repository
* Google Play Billing Library
## Getting started
### Installation
Automated builds of the image are available on [Dockerhub](https://hub.docker.com/r/instantsolutions/gitlab-ci-android-runner).
```bash
docker pull instantsolutions/gitlab-ci-android-runner:1.0.3
```
Alternatively you can build the image yourself.
```bash
docker build -t instantsolutions/gitlab-ci-android-runner github.com/instant-solutions/docker-gitlab-ci-android-runner
```
### Running
Update the values of `CI_SERVER_URL`, `RUNNER_TOKEN` and `RUNNER_DESCRIPTION` in the below commands. If these enviroment variables are not specified, you will be prompted to enter these details interactively on first run.
### Without persistence
```bash
docker run -d --restart=always \
--name gitlab-ci-android-runner \
--env='CI_SERVER_URL=http://your.gitlab.host/ci' \
--env='RUNNER_TOKEN=token' \
--env='RUNNER_DESCRIPTION=androidrunner' \
--env='RUNNER_EXECUTOR=shell' \
instantsolutions/gitlab-ci-android-runner:1.0.3
```
### With persistence
```bash
docker run -d --restart=always \
--name gitlab-ci-android-runner \
--volume /srv/docker/gitlab-runner:/home/gitlab_ci_multi_runner/data \
--env='CI_SERVER_URL=http://your.gitlab.host/ci' \
--env='RUNNER_TOKEN=token' \
--env='RUNNER_DESCRIPTION=androidrunner' \
--env='RUNNER_EXECUTOR=shell' \
instantsolutions/gitlab-ci-android-runner:1.0.3
```
## More information
* Read about [gitlab-ci-multi-runner](https://gitlab.com/gitlab-org/gitlab-ci-multi-runner/) to learn how integration works with GitLab CI.
* This image is based on [docker-gitlab-ci-multi-runner](https://github.com/sameersbn/docker-gitlab-ci-multi-runner), which handles registration and startup.