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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

How to use "Run Bamboo jobs in Docker" Edited

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

1 answer

1 vote
edwin Community Leader Aug 26, 2019

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.

Screen Shot 2019-08-26 at 7.27.56 AM.png

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 

edwin Community Leader Aug 26, 2019

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.

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 :)

Like edwin likes this

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...

673 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