buildbot icon indicating copy to clipboard operation
buildbot copied to clipboard

Support Podman workers using podman-py

Open felixsinger opened this issue 2 years ago • 4 comments
trafficstars

Hello,

I would like to use Buildbot with Podman containers and they seem to have their own client library. Not sure about its differences to docker-py though. So far I'm still struggling setting up a Buildbot worker with Podman using the docker-py library, but maybe it doesn't even work.

However, I guess it makes sense to use that library when Podman containers are desired to be used. Would be great if you could add support for it!

felixsinger avatar May 07 '23 11:05 felixsinger

@felixsinger check out the documentation and installation process for the podman The Podman website provides installation instructions for various platforms: https://podman.io/getting-started/installation.html The Podman Python client library documentation: https://github.com/containers/python-podman/blob/main/docs/index.md The Buildbot documentation on setting up a Docker worker: https://docs.buildbot.net/latest/manual/configuration/workers/docker.html

akshayamadhuri avatar May 10 '23 10:05 akshayamadhuri

Podman and Docker are not the same.

felixsinger avatar May 13 '23 07:05 felixsinger

@felixsinger yes ignore the docker documentation

akshayamadhuri avatar May 13 '23 07:05 akshayamadhuri

So far I'm still struggling setting up a Buildbot worker with Podman using the docker-py library, but maybe it doesn't even work.

@felixsinger I'm currently using Buildbot 3.8.0 and Podman 4.4.1 on CentOS 9 Stream with SELinux enabled, for the most part it works.

But docker-py doesn't know anything about pods, for example. So, it's not possible to run latent workers in the same pod as the Buildbot master.

An even bigger problem is that Buildbot can't work with Docker and Podman secrets even though docker-py can work with both.

I agree with you that it would be great if Buildbot could work with both libraries. It would also be great if Buildbot had a secret provider that supports Docker/Podman secrets through REST API.

ivanov17 avatar Jun 30 '23 14:06 ivanov17