Skip to content

Commit

Permalink
Remove double code
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Nov 20, 2024
1 parent 048d627 commit dfe08b5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions samples/build-me/src/main/java/dev/snowdrop/BuildMe.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ public static void main(String... args) {

Map<String, String> envMap = new HashMap<>();
envMap.put("BP_JVM_VERSION", "21");
// envMap.put("BP_MAVEN_BUILT_ARTIFACT","target/quarkus-app/lib/ target/quarkus-app/*.jar target/quarkus-app/app/ target/quarkus-app/quarkus");
// envMap.put("CNB_LOG_LEVEL","trace");

DockerClient client = getDockerClient();
client.authConfig()
Expand All @@ -39,11 +41,7 @@ public static void main(String... args) {
.withBuilderImage(new ImageReference("paketocommunity/builder-ubi-base:latest"))
.withOutputImage(new ImageReference("quay.io/snowdrop/my-quarkus-app"))
.withNewPlatformConfig()
.withEnvironment(Map.ofEntries(
Map.entry("BP_JVM_VERSION", "21")
// Map.entry("BP_MAVEN_BUILT_ARTIFACT","target/quarkus-app/lib/ target/quarkus-app/*.jar target/quarkus-app/app/ target/quarkus-app/quarkus"),
// Map.entry("CNB_LOG_LEVEL","trace")
))
.withEnvironment(envMap)
.endPlatformConfig()
.withNewDockerConfig()
.withDockerClient(client)
Expand Down

0 comments on commit dfe08b5

Please sign in to comment.