Skip to content

Commit

Permalink
Merge pull request #4870 from gastaldi/docker_gradle
Browse files Browse the repository at this point in the history
Fixes native build on Docker in the Gradle plugin
  • Loading branch information
kenfinnigan authored Oct 25, 2019
2 parents 4eb855a + f6d3d81 commit 82550b6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public class NativeConfig {
/**
* The docker image to use to do the image build
*/
@ConfigItem(defaultValue = "quay.io/quarkus/ubi-quarkus-native-image:19.2.0")
@ConfigItem(defaultValue = "quay.io/quarkus/ubi-quarkus-native-image:19.2.0.1")
public String builderImage;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -448,11 +448,16 @@ public void accept(ConfigBuilder configBuilder) {

configs.add("quarkus.native.debug-symbols", debugSymbols);
configs.add("quarkus.native.enable-reports", enableReports);
if (dockerBuild != null) {
configs.add("quarkus.native.docker-build", dockerBuild);
}
if (containerRuntime != null) {
configs.add("quarkus.native.container-runtime", containerRuntime);
} else if (dockerBuild != null) {
if (!dockerBuild.isEmpty() && !dockerBuild.toLowerCase().equals("false")) {
if (dockerBuild.toLowerCase().equals("true")) {
configs.add("quarkus.native.container-runtime", "docker");
} else {
configs.add("quarkus.native.container-runtime", dockerBuild);
}
}
}
if (containerRuntimeOptions != null) {
configs.add("quarkus.native.container-runtime-options", containerRuntimeOptions);
Expand Down

0 comments on commit 82550b6

Please sign in to comment.