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,560,589
Community Members
 
Community Events
185
Community Groups

docker-compose sample task

Hello,

 

I just downloaded bamboo-6.3.0. This newer release comes with support for yaml or docker compose.

I have no idea where and how to use this capability, but I need to.

Is there a clear explanation on how to use yaml in a build task anywhere?

 

thank you

2 answers

So, here's how I got it to work:

  1. Create a new Script Task
  2. Set the Script Body to `docker-compose up -d`
  3. Set the Working Subdirectory to wherever the docker-compose.yml is located

And then, don't forget to set the following final task, which is pretty much identical, only with the following script body instead:

  • `docker-compose down`
0 votes
rsperafico
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Jan 09, 2018

Hello @Tome Petros,

Please, refer to Bamboo YAML Specs for further information.

Kind regards,

Rafael

I've looked at the link, and this does not help me. In essence, the contents of the linked site tells me how to do something that is different than what I want to do.

 

Basically, I have a working docker-compose.yml in the repository at a location where on my local machine, I just need to run `docker-compose up` and it works.

 

The questions I seek answers to are:

  1. Is it possible to tell the docker runner something like "perform `docker-compose up` in this and that directory in the project?
  2. If not, why?
  3. What is the best alternative to doing it this way?
Like Jamie C likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events