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

Docker image doesn't build correctly when using Podman #58

Closed
bschonec opened this issue Apr 1, 2024 · 2 comments · Fixed by #59
Closed

Docker image doesn't build correctly when using Podman #58

bschonec opened this issue Apr 1, 2024 · 2 comments · Fixed by #59

Comments

@bschonec
Copy link
Contributor

bschonec commented Apr 1, 2024

The image build fails when using podman as the image builder. The build fails in this section because PUPPET_DEB isn't defined properly due to UBUNTU_CODENAME not being defined.

I think that UBUNTU_CODENAME argument doesn't 'flow' into the final build definition.

[3/3] STEP 7/13: ADD https://apt.puppet.com/${PUPPET_DEB} /${PUPPET_DEB}
Error: building at STEP "ADD https://apt.puppet.com/${PUPPET_DEB} /${PUPPET_DEB}": reading "https://apt.puppet.com/puppet7-release-.deb": invalid response status 404

If I change the Dockerfile so that UBUNTU_CODENAME is defined in the build definition, then the build does complete successfully.

I have no evidence, but my theory is that Docker and Podman behave differently when it comes to arguments and their scope. I think that the docker-based builds allow ARGs to be global-ish while podman-based build have more restrictive scope.

@bschonec
Copy link
Contributor Author

bschonec commented Apr 1, 2024

Referencing this StackOverflow article, the existing Dockerfile is correct in defining the global ARGuments before any build definitions, but Podman isn't finding the value.

@bschonec
Copy link
Contributor Author

bschonec commented Apr 1, 2024

#59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
1 participant