Skip to content

instant-solutions/docker-gitlab-ci-android-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

instantsolutions/gitlab-ci-android-runner:1.0.3

A docker image with gitlab-ci-multi-runner, which can run android builds.

Docker Stars Docker Pulls Docker builds

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.

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

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

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

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