A docker image with gitlab-ci-multi-runner, which can run android builds.
- 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
Automated builds of the image are available on Dockerhub.
docker pull instantsolutions/gitlab-ci-android-runner:1.0.3
Alternatively you can build the image yourself.
docker build -t instantsolutions/gitlab-ci-android-runner github.com/instant-solutions/docker-gitlab-ci-android-runner
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.
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
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
- Read about gitlab-ci-multi-runner to learn how integration works with GitLab CI.
- This image is based on docker-gitlab-ci-multi-runner, which handles registration and startup.