3

Carrying on from this question, would you want to dockerise your CI (Gitlab (especially if Gitlab also contains all your repositories) or Jenkins) installation on your master node virtual machine?

What are the advantages and disadvantages to this, than just installing normally onto the VM without docker?

030
  • 13,383
  • 17
  • 76
  • 178
Rekovni
  • 933
  • 10
  • 24

2 Answers2

3

Pros

  • possible to run the CI on a container orchestration platform

Cons

  • docker in docker in docker
030
  • 13,383
  • 17
  • 76
  • 178
3

If it's just the master, I would say it's okay. The main concern would be any recursive dependencies where your CI tool manages the Docker platform that it runs on.

Build agents are another case. I've run CI with Docker in both configurations, and I prefer running outside of Docker and invoking it during your build, as it allows consistency between your dev and CI platform. Eg: https://github.com/amaysim-au/docker-serverless

user2640621
  • 1,405
  • 9
  • 20