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

bamboo specs with docker

Bill Wang March 8, 2018

I am looking for the feature that I can run my tasks under a docker image.

use bamboo yaml specs as sample, I want to run the build as below: 

project:
key: DRAGON
plan:
key: SLAYER
name: Dragon Slayer Quest
stages:
- job1:
- scripts:
- echo 'Going to kill the dragon, watch me'
- sleep 1
- echo 'Nailed it'
- job2:
- scripts:
- ${bamboo_capability_system_builder_pip} install -r requirements.txt
- ${bamboo_capability_system_builder_python} script.py
requirements:
- node:7 (# which is a docker iamge with tag)
artifacts:
- name: csv_report
path: output/*.csv

requirements in job2 is a docker image.

1 answer

1 accepted

0 votes
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 9, 2018

It's exactly the feature of Bamboo 6.4 released 10 days ago: https://confluence.atlassian.com/bamboo/bamboo-6-4-release-notes-946020272.html

Bill Wang March 14, 2018

thanks, @Alexey Chystoprudov

 

Can we build docker image from a base docker image? (I see the feature in 6.4 already)

 

And: 

1. It will be better if if I can nominate Dockerfile path, because it is not always under the repo root

2. tag the images with several tags, because I need tag it with buildNumber, branch name, buildNumber-branch_name, environment, latest, etc in one shot. 

3. push to different docker registry servers (We have two) with all tags. 

4. automatically clean the image to save the space on the bamboo agents (yes, I see the feature already)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events