Sign inSign up

informex/ubuntu-gitlab-runner

By informex

•Updated over 2 years ago

This image will register a new Gitlab runner to the define instance and run Maven jobs.

Image
0

10K+

informex/ubuntu-gitlab-runner repository overview

Run the image:

docker run -d
--name gitlab-runner
--restart always
-e CI_SERVER_URL=https://my.gitlab.url/⁠
-e REGISTRATION_TOKEN=XXXXXXXXXXXXXXXXXXXX
informex/ubuntu-gitlab-runner

Parameters:

This image will register a new Gitlab runner to the define instance (CI_SERVER_URL). -e CI_SERVER_URL=http://my.gitlab.url/⁠

The instance registration token must be provided as environment variable (REGISTRATION_TOKEN). -e REGISTRATION_TOKEN=XXXXXXXXXXXXXXXXXXXX

Volumes:

If you have a specific Maven configuration is can be place at /home/gitlab-runner/.m2/settings.xml. -v /srv/gitlab/runner/settings.xml:/home/gitlab-runner/.m2/settings.xml

If you want to keep the maven local repository between builds you can mount /home/gitlab-runner/.m2/repository/. -v /tmp/.m2/repository/:/home/gitlab-runner/.m2/repository

Tag summary

Content type

Image

Digest

Size

993.1 MB

Last updated

about 9 years ago

docker pull informex/ubuntu-gitlab-runner