diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java index f67d38491acea..1d702c8852e29 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/NativeConfig.java @@ -495,20 +495,14 @@ enum ImagePullStrategy { /** * Always pull the most recent image. */ - ALWAYS("always"), + ALWAYS, /** * Only pull the image if it's missing locally. */ - MISSING("missing"), + MISSING, /** * Never pull any image; fail if the image is missing locally. */ - NEVER("never"); - - public final String commandLineParamValue; - - ImagePullStrategy(String commandLineParamValue) { - this.commandLineParamValue = commandLineParamValue; - } + NEVER } } diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildContainerRunner.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildContainerRunner.java index 2fdaab44f36d3..15eb300febff0 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildContainerRunner.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildContainerRunner.java @@ -30,8 +30,7 @@ protected NativeImageBuildContainerRunner(NativeConfig nativeConfig) { this.nativeConfig = nativeConfig; containerRuntime = nativeConfig.containerRuntime().orElseGet(ContainerRuntimeUtil::detectContainerRuntime); - this.baseContainerRuntimeArgs = new String[] { "--env", "LANG=C", "--rm", - "--pull", nativeConfig.builderImage().pull().commandLineParamValue }; + this.baseContainerRuntimeArgs = new String[] { "--env", "LANG=C", "--rm" }; containerName = "build-native-" + RandomStringUtils.random(5, true, false); }