Skip to content

Commit

Permalink
Merge pull request #13864 from stuartwdouglas/13629
Browse files Browse the repository at this point in the history
Fast-jar does not deploy correctly to OpenShift
  • Loading branch information
gsmet authored Dec 14, 2020
2 parents 642b505 + 245e895 commit 215c408
Showing 1 changed file with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,9 +238,14 @@ public void openshiftBuildFromJar(OpenshiftConfig openshiftConfig,
LOG.info("Performing openshift binary build with jar on server: " + kubernetesClient.getClient().getMasterUrl()
+ " in namespace:" + namespace + ".");

createContainerImage(kubernetesClient, openshiftYml.get(), config, "target", out.getOutputDirectory(),
jar.getPath(),
out.getOutputDirectory().resolve("lib"));
if (packageConfig.isFastJar()) {
createContainerImage(kubernetesClient, openshiftYml.get(), config, "target", jar.getPath().getParent(),
jar.getPath().getParent());
} else {
createContainerImage(kubernetesClient, openshiftYml.get(), config, "target", jar.getPath().getParent(),
jar.getPath(),
jar.getLibraryDir());
}
artifactResultProducer.produce(new ArtifactResultBuildItem(null, "jar-container", Collections.emptyMap()));
}

Expand Down

0 comments on commit 215c408

Please sign in to comment.