/docker-bamboo-6.1-base-agent

Dockerfile Bamboo 6.1 Base Agent

Primary LanguageShell

docker-bamboo-6.1-base-agent

Dockerfile Bamboo 6.1 Base Agent

Building

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 .

Running

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

Test

Follow the following steps to make sure your Bamboo agent can connect to Bamboo server:

  1. 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
  2. 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
  3. Go to your Bamboo server settings -> Agents -> Agent authentication: and aprrove the agent request.
  4. 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).
  5. Kepp running the following command to check the output of the agent
    docker logs bamboo-base-agent

Links

More information can be found on the following links:

  1. Original Java Repo by cogniteev