I've been testing the new Docker runner feature for the past couple hours and it's been working great! There is one thing though that I can't seem to figure out how to do. I'd like to be able to run say a Database Docker container alongside the build. This is a pretty typical case for builds to run external services alongside them (e.g. Bitbucket pipelines services feature).
Is it possible to configure multiple containers to run alongside your docker runner build?
It would be easiest to accomplish this by setting up pre-tasks to your build/plan. You could build your database and attach your schema in build steps before, and then have your docker runner tasks execute after that dependency is met, however you would need to cleanup the container in another step later.
That actually doesn't solve the issue with Docker Runners, the only thing we are allowed to do via the UI is to place an image as our build container. We aren't given an option to say place a docker-compose.yml file.
What we need is something like bitbucket-pipelines, where you can have your base image the agent runs on and then you can attach services (other docker images) that run alongside the build that can be called upon.
Does such a feature exist?
G’day Bamboo customers, The wait is over! Bamboo Data Center edition you have been asking for is finally here! This self-managed enterprise offering of Bamboo has the resilience, reliability, and s...
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