buildbot
buildbot copied to clipboard
Support Podman workers using podman-py
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 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
Podman and Docker are not the same.
@felixsinger yes ignore the docker documentation
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.