mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
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>
31 lines
847 B
Go
31 lines
847 B
Go
//go:build !amd64 && !arm64
|
|
|
|
package localapi
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/containers/podman/v5/pkg/domain/entities"
|
|
"github.com/sirupsen/logrus"
|
|
)
|
|
|
|
func CheckPathOnRunningMachine(ctx context.Context, path string) (*LocalAPIMap, bool) {
|
|
logrus.Debug("CheckPathOnRunningMachine is not supported")
|
|
return nil, false
|
|
}
|
|
|
|
func CheckIfImageBuildPathsOnRunningMachine(ctx context.Context, containerFiles []string, options entities.BuildOptions) ([]string, entities.BuildOptions, bool) {
|
|
logrus.Debug("CheckIfImageBuildPathsOnRunningMachine is not supported")
|
|
return nil, options, false
|
|
}
|
|
|
|
func IsHyperVProvider(ctx context.Context) (bool, error) {
|
|
logrus.Debug("IsHyperVProvider is not supported")
|
|
return false, nil
|
|
}
|
|
|
|
func ValidatePathForLocalAPI(path string) error {
|
|
logrus.Debug("ValidatePathForLocalAPI is not supported")
|
|
return nil
|
|
}
|