Podman and Bitbucket self-hosted runner

Felix Schendel October 26, 2022

Hi, is it possible to use bitbucket self-hosted runners using podman? Thanks

3 answers

1 accepted

1 vote
Answer accepted
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 28, 2022

Hi Felix,

We offer two different types of Runners for Linux:

The Docker ones require Docker to run, however, the Shell ones do not, and they use Bash to run the pipelines steps on your machine.

I am not familiar with Podman, but if it's a tool you can use from Bash, you can look into our Linux Shell Runners.

Kind regards,
Theodora

Felix Schendel October 28, 2022

perfect, we'll try with the shell runners

Like Theodora Boudale likes this
Tony Jackson
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 27, 2023

Did you have any luck with this @Felix Schendel ?  Looking to do the same.

Felix Schendel March 27, 2023

Yes, we went with the shell runners. They have some limitations (mentioned in the link) but those were fine for us.

uacode
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 3, 2024

Any updates about Podman?

Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 19, 2024

Hi @uacode,

The Linux Docker runner requires Docker to run. We have a feature request in our issue tracker about supporting Podman:

You can add your vote to it (by selecting the Vote for this issue link) to express your interest. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the Start watching this issue link) if you'd like to get notified via email on updates.

Implementation of features is done as per our policy here and any updates will be posted in the feature request.

Kind regards,
Theodora

Like uacode likes this
0 votes
mosen1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 31, 2023

It is now possible to pass the podman socket to the runner. Within RHEL i enabled the socket using:

systemctl enable --now podman.socket

However the runner itself attempts to parse the version string out of the API and is doing some kind of string regex or manipulation which fails, as shown in the stack trace below:

Exception in thread "main" java.lang.NumberFormatException: For input string: "4."
at java.base/java.lang.NumberFormatException.forInputString(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at java.base/java.lang.Integer.parseInt(Unknown Source)
at com.atlassian.pipelines.runner.core.runtime.linux.docker.LinuxDockerRuntimeSetup.lambda$verifyDockerRequirements$2(LinuxDockerRuntimeSetup.java:91)

I do not know if it is possible to fake the version response out of podman, but certainly we are way into unsupported territory.

Wouter Bunthof
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 19, 2023

I've got a similar issue, but my error is 

Exception in thread "main" java.lang.NumberFormatException: For input string: "3."

 However I'm also running V3 podman.

Version: 3.0.1

Did you find any solution?

Like uacode likes this
0 votes
Felix Schendel October 27, 2022

In our case we can't install docker on the host so if podman is not supported it makes no sense to use pipelines unfortunately.

To further describe the issue: it seems docker image "docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner" relies on the docker daemon. We tried to mount the podman socket instead of the docker one but it was still complaining with sth like:


connect(..) failed: Connection refused: /var/run/docker.sock

Any ideas welcome! Hope someone has successfully used self-hosted runners using podman.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events