Hi,
I'm trying to run bamboo agent on docker container. My server URL is in the format of https://*****.***.com(Which is my application URL).My server is in a windows VM. I downloaded the agent base from https://hub.docker.com/r/atlassian/bamboo-agent-base .
When I try to run docker run command from the overview of bamboo agent base URL (mentioned above), The image got downloaded and my docker container is up.
1) When my docker container is up, how to connect this container to bamboo server?
2) I tried installing remote agent using https://*****.*****.com/bamboo/admin/agent/addRemoteAgent.action inside the docker container.
Result:
Agent process started, shutdown hook registered, proceeding with log pump...
Running Bamboo Agent...
Bamboo Agent is already running.
Waiting for the agent process to finish...
The underlying agent process terminated with a non zero exit code: 1
The underlying agent process terminated with a non zero exit code: 1
Bamboo Agent Installer is shutting down, the underlying agent process has already been shut down.
From this, How do I connect to the bamboo server. (I provided security token also).
3) How to install bamboo agent in docker windows container?
Regards
Hi @shivaram
From what I can understand, the issue you are facing could be caused by networking misconfiguration issues. I'll try to share what I know in the hopes that it will help you move forward with this configuration.
docker run \
-v bambooAgentVolume:/home/bamboo/bamboo-agent-home \
--name="bambooAgent" \
--init -d atlassian/bamboo-agent-base \
BAMBOO_SERVER_URL
In this thread (Solved: The docker images for Bamboo Server and Bamboo ...), you can find a simple example where we have both Bamboo Server and Agent running in different Docker containers. The magic is done by docker in that example which is able to make both containers see the same network and hostnames.
It might be the case that your problem is not related to the network config. To confirm we are in the right direction, can you please:
I'm asking for the logs because I'm not sure if the logs you shared are from the first start or a different attempt from inside the container.
No problem.. everything's sorted. I have to edit the docker file a bit.. mention the bamboo agent.jar and path where i want it in the docker container correctly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is great! I'm glad you sorted it out!
Have a good one!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm assuming you are talking about a Linux remote agent container running on windows. It should work fine.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.