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,
I'm trying to build (and eventually run) a docker image in a task. I'm a bit confused with what needs to be given as the "Repository"? Is this where the image should be taken, or where the output (resulting image) will need to go?
I have a local directory containing my DockerFile, together with the files the it needs (requirements, etc). How can I access this directory? Is this what the subdirectory is meant for, and if so, will it work with the directory path or does this need to be copied into the bamboo root directory?
I'd appreciate any clarifications.
Thanks!
Hi @Din Tamari ,
Repository is the name of the image you are building.
I have a local directory containing my DockerFile, together with the files the it needs (requirements, etc). How can I access this directory?
You'll use source control here.
For example Git.
In your local directory: run the following commands
Next step would be to push the commit to a remote repository like Bitbucket, but you can work with a local repository.
In Bamboo
Hi @edwin
thanks for the response! I've followed your steps and have additionally:
1. Pushed the repo to github
2. Provided the ssh for accessing the github repo
3. Set up a docker capability for a new agent
--> For this, I created a new Agent with Docker capabilities and set the path to: C:/Program Files/Docker/Docker (I'm on windows).
When I try running the plan, I get the following error: Error occurred while running Task 'build docker image(2)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli.
Do you have any idea what the problem could be?
Could it be due to the docker path I am providing? I've also tried setting it to: C:/Program\ Files/Docker/Docker and C:\Progra~1\Docker\Docker
I've also tried using a basic docker example to see if worked, following the task configuration found here: https://jira.atlassian.com/browse/BAM-17729 and I am getting the same error message.
Thanks!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.