Public | Automated Build

Last pushed: 4 days ago
Short Description
This repository provides a docker image to run the latest version of the gitlab runner for ci.
Full Description

GitLab Runner for Docker

Project Information:

<p align="center">






</p>


A quick note:

This project provides you with a easy-to-use builder for all of your projects.

Quick Start

Run your GitLab runner like this:

One Time

docker run -it --rm \
-e CI_SERVER_URL=http://YOUR_GITLAB_INSTANCE/ci \
-e REGISTRATION_TOKEN=YOUR_GITLAB_RUNNER_TOKEN \
-v /var/run/docker.sock:/var/run/docker.sock \
philippheuer/gitlab-runner-aio

As Service

docker run -d \
--restart=unless-stopped \
-e CI_SERVER_URL=http://YOUR_GITLAB_INSTANCE/ci \
-e REGISTRATION_TOKEN=YOUR_GITLAB_RUNNER_TOKEN \
-v /var/run/docker.sock:/var/run/docker.sock \
philippheuer/gitlab-runner-aio

All builds will be executed in seperate docker-containers, which will be started with the project environment (java/ruby/...).
Therefore we need to mount /var/run/docker.sock to access docker.

Features

  • [X] Dumb-Init Process Supervisor
  • [X] Register runner on Startup
  • [X] Deregister runner on Shutddown (Hook to SIGHUP+SIGINT+SIGTERM)

Environment Parameters

Environment Parameters can be set using -e KEY=VALUE. This are all available options:

Key Value Default Value
CI_SERVER_URL Your gitlab url + /ci required
REGISTRATION_TOKEN Your gitlab runner registration token required
RUNNER_NAME identifier for this instance aio-runner
DEBUG true or false false

Shell Access

If you are using Docker version 1.3.0 or higher you can access the shell of a running containers by using the following command. This may be useful for debugging and maintenance purposes.

docker exec -it ContainerNAMEorID sh --login

License

Released under the MIT license.

Docker Pull Command
Owner
philippheuer

Comments (0)