You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi,
After 2 years I've returned to Bamboo and I've decided to use new (at least for me) functionality - "Run bamboo jobs in docker". But I do not understand how to use it.
I would like to start Java compilation in openjdk:8 image. I've configured a job to run in docker but how to properly execute a command in such docker, should I use Script task and "docker run ..." or is it a better way?
Michal Szymanski
Hi @Michał Szymański ,
Under job configuration, there is a Docker tab where if you specify the image then the build will run inside that image.
Documentation: Docker Runner
What do you mean by 'build', I've configured job as you showed and I've created one test 'script' task that had one command 'hostname' and I've got name of host name not docker container.
Should I use 'special' task that can be run inside docker image?
Michal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, the task. But to run this task in a Docker container, you'll have to specify an image in the Docker tab. As shown in the screenshot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Strange when I execute script with hostname it showed host name not docker name but when execute 'java -version' it showed java from docker :) Simply it works :) Thank you :)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.