-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
remote build: document that only the docker and containers-storage transport work #15141
remote build: document that only the docker and containers-storage transport work #15141
Comments
@flouthoc PTAL |
I am not sure that is something we can easily/realistically support for remote clients. It would work if the archive is on the server side (i.e., the Linux VM) but it does not work when the archive is on the client side (i.e., MacOS). I think that's probably something we need to document. |
Does this work in Docker? We are supposed to be copying over the context directory to the server side and using it. Which to me means the archive should have been copied over, and we are just not getting the right path. Wouldn't this be a bug in Podman and not in buildah. |
No. Docker only supports images on a registry or in the local storage.
We are copying over the build context but this is a reference in a Dockerfile to a non-Docker transport. Podman had to preprocess the Dockerfile, and copy these archives outside the build context on the server. IMHO, referencing files outside the build context is something for Podman on Linux. Hence the suggestion to document that non-Docker and non-storage references are not supported for remote clients. |
I am not sure why Podman is parsing the Containerfile on the client side. Give me a dope slap on the question on Docker support, :^(. Anyways since this does not work in Docker, I am fine with documenting it is only supported via podman --remote=false build. |
It does not but it had to if we wanted to support the scenario. Let's consider the following file: FROM oci-archive:/tmp/on/the/client/archive.tar Currently, the build fails for a remote client because the path relates to the client machine. Making that work seems extremely tedious and error prone to me, so I don't think we should support it (given Docker does not). |
@graywolf-at-work interested in opening a PR on the man page to document this on podman build? |
If the oci archive is already part of the build context like it is the case here we should be able to use it on the remote server. The problem is that the cwd is different on the server, we would need to lookup the path relative to the build context and not the cwd. |
Yup, but as @vrothberg points out you can specify a full path in the from command that would not be understood by the remote build or the builder. Theoretically we could make this work, but I don't think it is worth it. |
I can send a PR, however now that I look I'm not sure where the support for |
It should be against podman build indicating that in remote mode only the "docker" transport is supported. |
And "containers-storage" (see |
When using remote podman client, not all transports work as expected. So document this limitation. Fixes: containers#15141 Signed-off-by: Tomas Volf <[email protected]>
When using remote podman client, not all transports work as expected. So document this limitation. Fixes: containers/podman#15141 Signed-off-by: Tomas Volf <[email protected]>
When using remote podman client, not all transports work as expected. So document this limitation. Fixes: containers/podman#15141 Signed-off-by: Tomas Volf <[email protected]>
When using remote podman client, not all transports work as expected. So document this limitation. Fixes: containers/podman#15141 Signed-off-by: Tomas Volf <[email protected]>
When using remote podman client, not all transports work as expected. So document this limitation. Fixes: containers#15141 Signed-off-by: Tomas Volf <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When trying to build from local oci-archive, the build does not work on macos.
Works fine on linux.
Steps to reproduce the issue:
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Additional environment details (AWS, VirtualBox, physical, etc.):
amd64-base mac book pro
The text was updated successfully, but these errors were encountered: