Dockerfile Bamboo 6.1 Base Agent
The app size on Github is larger than 100 MB, you need to use git lfs to clone it to your machine:
brew install git-lfs
git lfs install
git clone https://github.com/Ismail-AlJubbah/docker-bamboo-6.1-base-agent
Then build the image
docker build -t jubba/docker-bamboo-6.1-base-agent:latest .
Run this command to run the container
docker run -d -u=root -h bamboo-base-agent-1 --name bamboo-base-agent-1 -e BAMBOO_SERVER=http://YOUR-BAMBOO-SERVER-URL:PORT/agentServer/ jubba/docker-bamboo-6.1-base-agent:latest
Follow the following steps to make sure your Bamboo agent can connect to Bamboo server:
- Go to your Bamboo server settings -> System -> General Configureation: Make sure Broker client URL is not pointing to localhost, it shoud point to your server ip or hostname
- Make sure the ports 54663 443 80 in your Bamboo server are open, try to telnet it from the agent host:
telnet BAMBOO-SERVER 54663 telnet BAMBOO-SERVER 443 telnet BAMBOO-SERVER 80
- Go to your Bamboo server settings -> Agents -> Agent authentication: and aprrove the agent request.
- Go to your Bamboo server settings -> Agents -> Online Remote Agent: and wait unit the agent register it self to the server, it may take 2 mins (you may need to refresh the page manually).
- Kepp running the following command to check the output of the agent
docker logs bamboo-base-agent
More information can be found on the following links: