Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicitly set WORKDIR on builder stage #512

Merged
merged 2 commits into from
May 2, 2023

Conversation

nitzmahone
Copy link
Member

@nitzmahone nitzmahone commented May 2, 2023

fixes #501

  • fixes weird COPY failures with inherited WORKDIR from some base images in podman build when --squash is in use

The underlying issue looks to be a nasty podman bug around inherited WORKDIR from other ephemeral stages that only manifests when --squash is in use, but I'm unable to reproduce on a vanilla image. Just changing the COPY to be absolute seems like a better/"also good" fix, but it actually causes podman build to segfault (vs successfully copying files into the ether). So we'll live to diagnose that particular issue another day...

* fixes weird COPY failures with inherited WORKDIR from some base images in `podman build` when `--squash` is in use
@nitzmahone nitzmahone requested a review from a team as a code owner May 2, 2023 18:40
@nitzmahone nitzmahone merged commit 3e50afa into ansible:devel May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WORKDIR issue during build
2 participants