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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,011 views 1 5
Read article

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