Skip to content

asoa/gitlab_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Purpose

Development environment comprised of a docker composed gitlab deployment with docker runners.

Deployment

  • update .env_template file with your own values (domain name, gitlab root password, etc.) and change the name to .env
    • Makefile will replace #{variables}# in docker-compose.yml with values in .env
  • add the make package to your shell environment and run make main from the root of the project.
    • make main will build the docker images, recreate TLS certs, create the docker network, and start the containers.
  • get runner registration token from gitlab server
  • register the runners by using scripts/runner_registration configuration
    • export the token to your shell before running the script

Runner Additional Configuration

  • add network_mode = "<docker network>" to the runner config file / runner registration script; must match docker-compose network configuration.
    • added to runner registration script.

Gotchas

TODO

  • Add make toolchain to streamline deployment
  • Create certificate authority container
  • Create script to loop through all runners and register them
  • Create bash and powershell executors for gitlab runners
  • Add packer and terraform builders and plugins to gitlab runner
  • Move certificate authority creation logic from scripts to ca container and share via docker volume
  • Remove all secrets from variables.tf and use environment variables substitution, vault api, or gitlab secret variables
  • Add kaniko builder to runner and remove privileged mode

About

quickly create a gitlab server and runners with docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published