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

Create docker service for runner

nioanto January 20, 2022

Hi to all,

I have an instance of bitbucket cloud , it is possible to create a docker service or docker stack (or compose) for pipeline runner to run on my EC2/Compute Engine/Linode?

 

even using code like this on my linux :

docker container run -dit \
-v /tmp:/tmp \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /var/lib/docker/containers:/var/lib/docker/containers:ro \
-e ACCOUNT_UUID={SOME_UUID} \
-e REPOSITORY_UUID={SOME_UUID} \
-e RUNNER_UUID={SOME_UUID} \
-e RUNTIME_PREREQUISITES_ENABLED=true \
-e OAUTH_CLIENT_ID={SOME_CLIENT_ID} \
-e OAUTH_CLIENT_SECRET={SOME_CLIENT_secret} \
-e WORKING_DIRECTORY=/tmp \
--name runner-tempsensors \
docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner:1

 

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 1, 2022

Hi @nioanto,

If you want to use a Docker service in your pipelines runner builds, you can configure it in the bitbucket-pipelines.yml file of your repo.

You can see an example in the following documentation (see section "Custom docker-in-docker image"):

Is this something that works for you?

In case you have a different requirement, could you please share some more details on what your requirement is and what you are trying to achieve?

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events