Skip to content

Unable to build Augur in podman due to --chmod #3195

@MoralCode

Description

@MoralCode

Description:
Due to some current bugs relating to podman's support of both symbolic notation in the --chmod argument to the dockerfile COPY instruction, and the handling of the X (only apply executable permission to directories) portion of the flag, Augur is unable to be built using podman tooling.

How to reproduce:

  1. Clone the augur repo in an environment with podman set up
  2. follow instructions at https://oss-augur.readthedocs.io/en/main/docker/quick-start.html to build the container, substituting docker for podman in commands as needed

Expected behavior:
Since Podman is generally a drop-in replacement for docker, it should work the same

Actual behavior:

The podman build fails during a COPY step with an error like this:

Error: building at STEP "COPY --chmod=u=rw,u+X,go=r,go+X ./README.md .": Error parsing chmod u=rw,u+X,go=r,go+X

Outstanding questions
I would be curious whether this is the intention of augur to support podman or not.

On one hand, I wasn't able to see any statements that podman is officially supported in the README and it seems like all the CI jobs use docker for the tests.

That said, an issue that's related to this bug (see the references section below) was intending to fix support for openshift, leading me to believe that supporting that ecosystem of tooling* is something desirable for augur. Additionally, it seems like systems (Fedora) that are more closely related to RHEL or other enterprise distributions seem to either preinstall or make it easier to use podman (compared to the process of installing the docker daemon on linux and fixing the permissions) - but maybe that's my personal preference for podman kicking in

Log files
N/A

Software versions:

  • Augur: v0.89.3
  • OS: Fedora 41
  • Browser: N/A

Affected Versions:

The PR that caused this issue was merged immediately after v0.86.1 was tagged (the tag points to commit d55dfe5 in case it gets updated in the future), so all versions after v0.86.1 are likely affected.

References:

Upstream podman issue: containers/buildah#6066

Issue/PR that caused this issue in augur: #3107

* i think this ecosystem includes podman but I'm not sure how strong that coupling is

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