-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
10 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
...urces/codestarts/quarkus/tooling/dockerfiles/base/src/main/docker/Dockerfile.tpl.qute.jvm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
{#include Dockerfile-layout type='jvm'} | ||
{#quarkusbuild}{buildtool.cli} {buildtool.cmd.package}{/quarkusbuild} | ||
{#image}{dockerfile.jvm.from} {/image} | ||
{#args} | ||
ARG JAVA_PACKAGE=java-{java.version}-openjdk-headless | ||
ARG RUN_JAVA_VERSION={dockerfile.jvm.run-java-version} | ||
{/args} | ||
{#copy} | ||
# We make four distinct layers so if there are application changes the library layers can be re-used | ||
COPY --chown=1001 {buildtool.build-dir}/quarkus-app/lib/ /deployments/lib/ | ||
COPY --chown=1001 {buildtool.build-dir}/quarkus-app/*.jar /deployments/ | ||
COPY --chown=1001 {buildtool.build-dir}/quarkus-app/app/ /deployments/app/ | ||
COPY --chown=1001 {buildtool.build-dir}/quarkus-app/quarkus/ /deployments/quarkus/ | ||
COPY --chown=185 {buildtool.build-dir}/quarkus-app/lib/ /deployments/lib/ | ||
COPY --chown=185 {buildtool.build-dir}/quarkus-app/*.jar /deployments/ | ||
COPY --chown=185 {buildtool.build-dir}/quarkus-app/app/ /deployments/app/ | ||
COPY --chown=185 {buildtool.build-dir}/quarkus-app/quarkus/ /deployments/quarkus/ | ||
{/copy} | ||
{/include} | ||
|
7 changes: 1 addition & 6 deletions
7
...odestarts/quarkus/tooling/dockerfiles/base/src/main/docker/Dockerfile.tpl.qute.legacy-jar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
{#include Dockerfile-layout type='legacy-jar'} | ||
{#quarkusbuild}{buildtool.cli} {buildtool.cmd.package-legacy-jar}{/quarkusbuild} | ||
{#image}{dockerfile.legacy-jar.from} {/image} | ||
{#args} | ||
ARG JAVA_PACKAGE=java-{java.version}-openjdk-headless | ||
ARG RUN_JAVA_VERSION={dockerfile.legacy-jar.run-java-version} | ||
{/args} | ||
{#copy} | ||
COPY {buildtool.build-dir}/lib/* /deployments/lib/ | ||
COPY {buildtool.build-dir}/*-runner.jar /deployments/app.jar | ||
COPY {buildtool.build-dir}/*-runner.jar /deployments/quarkus-run.jar | ||
{/copy} | ||
{/include} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters