Package io.quarkus.deployment.pkg.steps
Class NativeImageBuildLocalContainerRunner
java.lang.Object
io.quarkus.deployment.pkg.steps.NativeImageBuildRunner
io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner
io.quarkus.deployment.pkg.steps.NativeImageBuildLocalContainerRunner
-
Nested Class Summary
Nested classes/interfaces inherited from class io.quarkus.deployment.pkg.steps.NativeImageBuildRunner
NativeImageBuildRunner.Result -
Field Summary
Fields inherited from class io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner
baseContainerRuntimeArgs, containerRuntime, nativeConfig -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddVolumeParameter(String localPath, String remotePath, List<String> args, ContainerRuntimeUtil.ContainerRuntime containerRuntime) getContainerRuntimeBuildArgs(Path outputDir) getVolumeAccessArguments(ContainerRuntimeUtil.ContainerRuntime containerRuntime, String image) Returns the container runtime arguments needed to ensure that files written to a bind-mounted volume on the host are owned by the real host user.Methods inherited from class io.quarkus.deployment.pkg.steps.NativeImageBuildContainerRunner
buildCommand, getBuildCommand, getGraalVMVersionCommand, isContainer, objcopy, setupMethods inherited from class io.quarkus.deployment.pkg.steps.NativeImageBuildRunner
build, getGraalVMVersion, objcopyExists, postBuild, preBuild, runCommand, runCommand
-
Constructor Details
-
NativeImageBuildLocalContainerRunner
-
-
Method Details
-
getVolumeAccessArguments
public static List<String> getVolumeAccessArguments(ContainerRuntimeUtil.ContainerRuntime containerRuntime, String image) Returns the container runtime arguments needed to ensure that files written to a bind-mounted volume on the host are owned by the real host user.The UID/GID of the running user inside
imageis detected dynamically viaContainerUserResolverso that any container image works correctly, regardless of which user it declares. When detection fails, Podman falls back to--userwith the host UID/GID (and--userns=keep-idfor rootless Podman).- Parameters:
containerRuntime- the detected container runtimeimage- the container image that will be run (used for UID/GID detection)- Returns:
- the list of extra
runarguments, or an empty list when not applicable
-
getContainerRuntimeBuildArgs
- Overrides:
getContainerRuntimeBuildArgsin classNativeImageBuildContainerRunner
-
addVolumeParameter
public static void addVolumeParameter(String localPath, String remotePath, List<String> args, ContainerRuntimeUtil.ContainerRuntime containerRuntime)
-