The podman module paths are moving from github.com/containers/podman to
go.podman.io/podman. This will help with future mobility.
Signed-off-by: Brent Baude <bbaude@redhat.com>
The function `IsPathAvailableOnMachine` was returning
the wrong target path (the path of the file mounted
inside the machine) when the provider was HyperV and
the mounted drive wasn't `C:`.
For example here:
https://api.cirrus-ci.com/v1/task/5212355623124992/logs/main.log
The host path `Z:\\podman_test3139230807\\...\\host-ca-certs.pem` was
converted as guest path `/mnt/c/podman_test3139230807/.../host-ca-certs.pem`
although `Z:\` was mounted to `/mnt/z` rather than `/mnt/c`.
We have fixed this behavior and added a few unit tests.
Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
Tremendous amount of changes in here, but all should amount to
the same thing: changing Go import paths from v5 to v6.
Also bumped go.mod to github.com/containers/podman/v6 and updated
version to v6.0.0-dev.
Signed-off-by: Matt Heon <mheon@redhat.com>
Replace single provider.Get() with provider.GetAll() loop to search
across all available machine providers when finding machine by port.
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
Adds /libpod/local/build endpoint, client bindings, and path translation
utilities to enable container builds from mounted directories to podman machine without tar uploads.
This optimization significantly speeds up build operations when working with remote Podman machines by eliminating redundant file transfers for already-accessible files.
Fixes: https://issues.redhat.com/browse/RUN-3249
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
Add support for loading images directly from machine paths to avoid
unnecessary file transfers when the image archive is already accessible
on the running machine through mounted directories.
Changes include:
- New /libpod/local/images/load API endpoint for direct machine loading
- Machine detection and path mapping functionality
- Fallback in tunnel mode to try optimized loading first
This optimization significantly speeds up image loading operations
when working with remote Podman machines by eliminating redundant
file transfers for already-accessible image archives.
Fixes: https://issues.redhat.com/browse/RUN-3249
Fixes: https://github.com/containers/podman/issues/26321
Signed-off-by: Jan Rodák <hony.com@seznam.cz>