Skip to content

Commit

Permalink
Allow specifying quarkus.native.builder-image via gradle plugin param…
Browse files Browse the repository at this point in the history
…eter native-builder-image.
  • Loading branch information
andreas-eberle committed Feb 5, 2020
1 parent b977950 commit 17a161d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public class QuarkusNative extends QuarkusTask {

private String dockerBuild;

private String nativeBuilderImage;

private boolean enableVMInspection = false;

private boolean enableFallbackImages = false;
Expand Down Expand Up @@ -282,6 +284,17 @@ public void setDockerBuild(String dockerBuild) {
this.dockerBuild = dockerBuild;
}

@Option(description = "Docker image", option = "native-builder-image")
public void setNativeBuilderImage(String nativeBuilderImage) {
this.nativeBuilderImage = nativeBuilderImage;
}

@Optional
@Input
public String getNativeBuilderImage() {
return nativeBuilderImage;
}

@Input
public boolean isEnableVMInspection() {
return enableVMInspection;
Expand Down Expand Up @@ -418,6 +431,9 @@ private Map<String, String> createCustomConfig() {
if (containerRuntimeOptions != null && !containerRuntimeOptions.trim().isEmpty()) {
configs.put("quarkus.native.container-runtime-options", containerRuntimeOptions);
}
if (nativeBuilderImage != null && !nativeBuilderImage.trim().isEmpty()) {
configs.put("quarkus.native.builder-image", nativeBuilderImage);
}
configs.put("quarkus.native.dump-proxies", Boolean.toString(dumpProxies));
configs.put("quarkus.native.enable-all-security-services", Boolean.toString(enableAllSecurityServices));
configs.put("quarkus.native.enable-fallback-images", Boolean.toString(enableFallbackImages));
Expand Down

0 comments on commit 17a161d

Please sign in to comment.