Code Monkey home page Code Monkey logo

gitlab-runner-dind's Introduction

GitLab Runner - Docker in Docker Version

Environment Variables

Variable Description Default/Example Allowed Values
DATA_DIR Directory where the GitLab Runner configuration is stored /etc/gitlab-runner
CONFIG_FILE Path to the GitLab Runner configuration file $DATA_DIR/config.toml
CA_CERTIFICATES_PATH Path to the CA certificates file $DATA_DIR/certs/ca.crt
LOCAL_CA_PATH Path to the local CA certificates file /usr/local/share/ca-certificates/ca.crt
GITLAB_URL URL of the GitLab instance https://10.10.10.10:8443
GITLAB_REGISTRATION_TOKEN Registration token for the GitLab Runner GLh.....YZ
DEFAULT_IMAGE Default Docker image for the GitLab Runner gitlab/gitlab-runner-helper:ubuntu-x86_64-v14.10.2-pwsh
TAG_LIST Comma-separated list of tags for the GitLab Runner docker,gitlab,dind
SSH_PORT Port number for SSH connections 8443
EXECUTOR Executor type for the GitLab Runner docker+machine shell, ssh, parallels, docker-windows, instance, custom, virtualbox, docker, docker+machine, kubernetes, docker-autoscaler

Running and Registering a GitLab Runner with this image

The minimum required environment to run and register this runner is below:

docker run -d --name gitlab-runner-dind \
  -v /var/run/docker.sock:/var/run/docker.sock \
  -v /etc/gitlab-runner-dind:/etc/gitlab-runner \
  -e GITLAB_URL=https://10.10.10.10:8443 \
  -e GITLAB_REGISTRATION_TOKEN=GLh.....YZ \
  armyguy255a/gitlab-runner-dind:latest

You may need a .env file to store the environment variables when running docker compose. The file would look like this:

HOST_IP=10.10.10.10
REGISTRATION_TOKEN=GLh.....YZ

Integrated Build Environment VM (Hackathon)

This runner's docker compose file is designed specifically for the Hackathon project. A local GitLab instance is required to be running on the host machine. This runner will be able to dynamically register itself with the GitLab instance. There is a convenience Makefile that allows you to experiment and iterate quickly on different versions of the runner. The common make commands are listed below.

make up - Start the GitLab Runner
make down - Destroy the GitLab Runner
make stop - Stop the GitLab Runner
make start - Start the GitLab Runner
make purge - Destroy/Delete the GitLab Runner and all associated data

gitlab-runner-dind's People

Contributors

armyguy255a avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.