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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes
rsperafico Atlassian Team 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

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`

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

653 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you