bamboo-specs-dsl icon indicating copy to clipboard operation
bamboo-specs-dsl copied to clipboard

Support of docker runner

Open farodin91 opened this issue 7 years ago • 4 comments

For example a job with docker runner in java specs

new Job("Default Job", 
new BambooKey("DR"))
.tasks(new VcsCheckoutTask()
.description("Checkout Default Repository")
.checkoutItems(new CheckoutItem().defaultRepository())
.cleanCheckout(true), 
new ScriptTask()
        .description("build and push")
        .location(ScriptTaskProperties.Location.FILE)
        .fileFromPath("${bamboo.working.directory}/build.sh"))
.dockerConfiguration(new DockerConfiguration()
.image("golang")
.volume("/var/run/docker.sock", "/var/run/docker.sock")
.volume("/root/.docker/config.json", "/root/.docker/config.json"))

farodin91 avatar Jul 25 '18 06:07 farodin91

Doc: https://docs.atlassian.com/bamboo-specs-docs/6.6.1/specs-java.html#docker

farodin91 avatar Jul 25 '18 07:07 farodin91

@farodin91 Thanks for the request! Are you actively using this library, or evaluating it for future use? I have limited time to maintain it right now, but I will do my best to update this soon if it will be useful.

thecodesmith avatar Aug 02 '18 17:08 thecodesmith

@thecodesmith I'm currently evaluating the lib for future use.

farodin91 avatar Aug 07 '18 07:08 farodin91

@farodin91 Thanks! I will be picking up this work and hope to have an update soon.

thecodesmith avatar Aug 07 '18 13:08 thecodesmith