Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Docker Container Bamboo Setup and Best Practice

Brightson Macha June 2, 2025
  • We have setup Docker container for Atlassian Bamboo version 9.5.1 build 90507 on our infrastructure. From design point of view, we can only run only single instance for the container.
  • The challenge we are facing right now, the infrastructure keep in restarting itself or utilizing all resource for host. 
  • In a nutshel, the infrastructure(RedHat 8, 16GB Ram, 16 CPU). It contains more than 80 plans, with each step(s) running either process for git, node(npm/npx), gradle, java etc. Also, created 11 local agents with all capabilities required for each plan.
  • I want to know, what are best practices, and how/what to improve the perfomance for the infrastructure.?


1 answer

1 accepted

0 votes
Answer accepted
Charlie Misonne
Community Champion
June 2, 2025

Hi @Brightson Macha and welcome to the Atlassian Community!

Regardless of running Bamboo in Docker you should use Bamboo remote agents on machines different than the one hosting the Bamboo application. This way you avoid any impact from builds on the application and you can keep it stable.

Running 11 builds in parallel + the Bamboo application on a machine with 16GB RAM/ 16CPU is too much.

If you can't use remote agents you will have to limit the number of builds that can run by reducing the amount of local agents and/or by adding more memory.

Brightson Macha June 2, 2025

@Charlie Misonne , thanks for the feedback.

 

  •  Current infrastructure clustered using docker swarm with 3 nodes ie we have 2 more Server 16GB RAM/ 16CPU on the same cluster.
  • I have confirm, we have 5 remote agent licenses.
  • Please, what will be your advice on this.?
    • How best architecture to be.? How many local agent on bamboo-server.?
    • And how to distribute 5 remote agent on 3 nodes.?
Charlie Misonne
Community Champion
June 2, 2025

If you have 2 extra nodes:

  • Node 1: Bamboo
  • Node 2: 3x remote agent
  • Node 3: 2x remote agent

Ideally you do not use local agents because they run in Bamboo's server process. If the agent crashes your Bamboo application crashes.

I even believe local agents are deprecated. See Local agents deprecated in 2021; no longer available in Bamboo 9.6+

Here is some info about running agent in Docker: Bamboo Agent

And the base image on DockerHub but you'll have to adapt it to extend it in order to add anything your builds need like npm, gradle, ...

I hope this helps!

Brightson Macha June 4, 2025

Thanks, will opt this design

Like Charlie Misonne likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events