Closed crozzy closed 4 months ago
This problem appeared after switching the builder (back) to podman from docker
Does this work for docker? The z
option isn't documented there.
I really hate this docker
/podman
incompatibility. Maybe we should only support using buildkit
, so we can control the frontend that's used.
No, doesn't work for docker it turns out, damn.
Looking at the buildkit
docs (https://github.com/moby/buildkit/blob/master/frontend/dockerfile/docs/reference.md#run---mounttypebind) I don't see an option for this either (which makes sense I suppose given they aren't supported by docker). Maybe it's worth removing those bind mounts and COPYing the go.{mod,sum}?
superseded by #2083
Currently there is an issue when attempting to bind mount certain files during the container build process. This appears to be a combination of podman and SELinux conspiring to lead to the cryptic error:
Which logically leads to something going wrong mounting the go.mod / go.sum files.
https://ci.ext.devshift.net/job/quay-clair-gh-build-main/460/console