Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How_to_Bring_Up_GitLab.pdf

 How_to_Bring_Up_GitLab.pdf

Slides from my talk at the Docker Manila meetup (Oct 27, 2016).

Nestor G Pestelos Jr

October 27, 2016
Tweet

More Decks by Nestor G Pestelos Jr

Other Decks in Technology

Transcript

  1. • GitLab service from scratch (w/ demo) • Tools: terraform,

    CoreOS, docker-compose • Services: DigitalOcean, LetsEncrypt tl;dr
  2. Why? • I run a GitLab instance for >1 year

    now • Fighting bit rot every day • Config management can only take you so far
  3. Demo • use terraform to bring up a CoreOS host

    (w/ DNS) • run a few setup scripts (e.g. letsencrypt) • scp docker-compose.yml • run docker-compose • setup GitLab
  4. gitlab-selfhosted.tf • terraform config DSL • “tell DigitalOcean to spin-up

    a host and give it a hostname” • initial DNS config (point to DO name servers)
  5. docker-compose.yml • not the standard way to run your own

    GitLab • github.com/sameersbn/docker-gitlab • Containers: redis, postgresql, registry, gitlab • Data volume containers • (optional) How to use upgraded images?
  6. Insights • Build generic servers • Image as primary artifact

    (multiple images in a single host) • Having long-running servers is OK