Replies: 2 comments 4 replies
-
I was never a fan of allowing In this specific example of |
Beta Was this translation helpful? Give feedback.
-
#20966 added support for passing all flags existing in |
Beta Was this translation helpful? Give feedback.
-
While working on the test for #20889, I found that I was unable to use images on a private registry on the
FROM
line of the Containerfile.The reason was that the private registry created for the test (https://github.com/containers/podman/blob/main/test/system/helpers.registry.bash#L19) uses a self signed certificate and
kube play
did not pass the--tls-verify=false
to the build step (currently here: https://github.com/containers/podman/blob/main/pkg/domain/infra/abi/play.go#L1026, but may move a little).From what I was able to find, the solution is to set the
SystemContext
field of thebuildahDefine.BuildOptions
(https://github.com/containers/podman/blob/main/vendor/github.com/containers/buildah/define/build.go#L211).podman build
does it here (https://github.com/containers/podman/blob/main/cmd/podman/common/build.go#L411) by callingbuildah
code at thecmd
level.Now the discussion
First, we need to decide whether
podman kube play --build=true
should support this request? If not, then we should probably document in thekube play
page aboutbuild
that it is not supported.If yes, then we should first decide where should the values for the build come from. Should the come from the CLI argument or from the YAML file itself. The CLI already supports these arguments but they are used only for pulling the actual image, not for pulling an image to build upon.
@vrothberg @rhatdan WDYT?
Beta Was this translation helpful? Give feedback.
All reactions