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?

3

Pros

  • possible to run the CI on a container orchestration platform

Cons

  • docker in docker in docker
1
  • The poster didn't make mention of having executors on master.
    – Matt O.
    Sep 23 '17 at 18:43
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.