What is the time to live for a docker container?

I have an issue where I'd like to queue up different builds for a specific branch.  I don't want builds to run at the same time; one build could take about 15 mins to complete and there may be a number of commits that occur for a specific branch during that time. ... We're seeing if we can create a script that will check for the presence of an item within our application, and run the maven command once the item is no longer present.  However, we're not sure if this method will work due to the time to live for a docker container.  How long will a docker container stay up and running?

2 answers

0 vote

Hi Daniel,

The docker container runs for 2 hours and is then stopped and the build will fail. We are looking into these sorts of parallel build restrictions. Please add an issue to https://bitbucket.org/site/master/ detailing what you want from this feature. That way when we come to implementing this we can take your feedback into account.

0 vote
Joshua Tjhin Atlassian Team Oct 26, 2016

Hi Daniel,

Sounds like you would like a way to limit concurrency like described in https://bitbucket.org/site/master/issues/12821/sequential-pipelines-disable

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

30,110 views 26 12
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you