Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,470
Community Members
 
Community Events
177
Community Groups

Docker container working directory mounting problem

Hey guys,

I am new to docker container and bamboo. And I am trying to use them to build my FPGA project.

Until recently I was using LXC container with bamboo and everything worked. Now I want to use docker container instead.
The configuration of docker is shown in the following figure:

Docker_configuration.PNG

It seems that docker run has mounted the correct volumes:

docker_run_log.PNG

My FPGA project source files are also successfully checked out:

source_code_checkout.PNG

In order to make sure that it is the correct directory I have added a "pwd" command in a script task and it showed the correct directory:

show_directory.PNG

Now it should compile the FPGA project using a script in the working directory, which is shown above. But it complains that the script is not to be found.

build_failed.PNG

I think the working directory is somehow not correctly mounted and I have found this page about this issue: https://confluence.atlassian.com/bamkb/bamboo-in-docker-build-fails-due-to-a-missing-working-directory-when-using-docker-runner-1027119339.html 

Since I am using absolute host path volume mounting, I think the first solution mentioned in the page may be suitable. 

  • stop container
  • create a host path identical to Bamboo home path, for example /opt/atlassian-bamboo/agent-home
  • copy Bamboo home to a newly created directory (for example from /root/bamboo-volume to  /opt/atlassian-bamboo/agent-home)
  • start Bamboo server (agent) container with a new volume mount binding: -v /opt/atlassian-bamboo/agent-home:/opt/atlassian-bamboo/agent-home

But I don't know how to do the steps in bamboo job configurator based on web browser. Can anyone give me some tipps?

Li

1 answer

Can some one help me?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events