Skip to content

Commit

Permalink
Build apps created with Quarkus CLI with configured img
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvavrik authored and rsvoboda committed Feb 20, 2025
1 parent 16d0fe8 commit 28dc61e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public Result buildApplicationOnNative(Path serviceFolder, String... extraArgs)
List<String> args = new ArrayList<>();
args.add(BUILD);
args.add("--native");
PropertyLookup nativeBuilderImageProperty = new PropertyLookup("quarkus.native.builder-image");
String nativeBuilderImage = nativeBuilderImageProperty.get();
if (nativeBuilderImage != null && !nativeBuilderImage.isEmpty()) {
args.add("-D" + nativeBuilderImageProperty.getPropertyKey() + "=" + nativeBuilderImage);
}
args.addAll(Arrays.asList(extraArgs));
return runCliAndWait(serviceFolder, args.toArray(new String[0]));
}
Expand Down

0 comments on commit 28dc61e

Please sign in to comment.