Skip to content

Add buildah as container runtime #721

@jensrudolf

Description

@jensrudolf

Good Afternoon.

Podman has some limitations/features especially when run as Podman in Podman. E.g. masking of some paths in /proc for security reasons. This leads to errors like:

[1/4] STEP 12/12: RUN /output/scripts/pip_install $PYCMD
error running container: from /usr/bin/crun creating container for [/bin/sh -c /output/scripts/pip_install $PYCMD]: mount `proc` to `proc`: Operation not permitted
: exit status 

when running ansible-builder from within the Ansible Dev Tools container which itself is executed in a CI pipeline running on a docker/podman executor.

However, building the Containerfile with buildah, e.g. from quay.io/containers/buildah:lastest runs flawlessly. In the end it would be nice to have buildah also added to the dev tools container but integration into ansible-builder as selectable container runtime would be a good first step IMHO.

BR
Jens

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions