2

Finally, it is possible in Bamboo to let a build run in a Docker container without dealing with agent configuration.

The system just asks for a image.

Now, what about the underlying infrastructure, what happens there? Will then Bamboo server host just spawn containers locally (which limits horizontal scalability)?

1 Answer 1

3

Yes, you are correct. Bamboo will spawn the build containers on the agent that the build is running on (either Local, Remote, or, Elastic - depending on your configuration).

In order for this to work the agent will require Docker to be installed and running.

2
  • Wait but whats the difference to docker capability and using docker run in script tasks?
    – Ta Mu
    Apr 2, 2018 at 12:22
  • 1
    The difference is that the stated purpose of the Docker runner is to isolate and maximise reproducibility of builds. The Docker tasks are there to interact with the Docker engine (building/running/pushing images). You are correct that you can achieve a similar outcome by issuing docker run commands inside a script task. The Docker runner will automatically mount your working directory. Apr 2, 2018 at 23:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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