Skip to content

Commit 64aa521

Browse files
author
Dennis Labordus
committed
Make release through github actions.
Signed-off-by: Dennis Labordus <[email protected]>
1 parent 6a2508c commit 64aa521

File tree

4 files changed

+16
-15
lines changed

4 files changed

+16
-15
lines changed

app/src/main/docker/Dockerfile.jvm

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Before building the container image run:
55
#
6-
# ./gradlew build
6+
# ./mvnw package
77
#
88
# Then, build the image with:
99
#
@@ -21,7 +21,7 @@
2121
# docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/app-jvm
2222
#
2323
###
24-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
24+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
2525

2626
ARG JAVA_PACKAGE=java-11-openjdk-headless
2727
ARG RUN_JAVA_VERSION=1.3.8
@@ -43,12 +43,13 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
4343
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
4444
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
4545
# We make four distinct layers so if there are application changes the library layers can be re-used
46-
COPY --chown=1001 build/quarkus-app/lib/ /deployments/lib/
47-
COPY --chown=1001 build/quarkus-app/*.jar /deployments/
48-
COPY --chown=1001 build/quarkus-app/app/ /deployments/app/
49-
COPY --chown=1001 build/quarkus-app/quarkus/ /deployments/quarkus/
46+
COPY --chown=1001 target/quarkus-app/lib/ /deployments/lib/
47+
COPY --chown=1001 target/quarkus-app/*.jar /deployments/
48+
COPY --chown=1001 target/quarkus-app/app/ /deployments/app/
49+
COPY --chown=1001 target/quarkus-app/quarkus/ /deployments/quarkus/
5050

5151
EXPOSE 8080
5252
USER 1001
5353

5454
ENTRYPOINT [ "/deployments/run-java.sh" ]
55+

app/src/main/docker/Dockerfile.legacy-jar

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Before building the container image run:
55
#
6-
# ./gradlew build -Dquarkus.package.type=legacy-jar
6+
# ./mvnw package -Dquarkus.package.type=legacy-jar
77
#
88
# Then, build the image with:
99
#
@@ -21,7 +21,7 @@
2121
# docker run -i --rm -p 8080:8080 -p 5005:5005 -e JAVA_ENABLE_DEBUG="true" quarkus/app-legacy-jar
2222
#
2323
###
24-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
24+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
2525

2626
ARG JAVA_PACKAGE=java-11-openjdk-headless
2727
ARG RUN_JAVA_VERSION=1.3.8
@@ -42,8 +42,8 @@ RUN microdnf install curl ca-certificates ${JAVA_PACKAGE} \
4242

4343
# Configure the JAVA_OPTIONS, you can add -XshowSettings:vm to also display the heap size.
4444
ENV JAVA_OPTIONS="-Dquarkus.http.host=0.0.0.0 -Djava.util.logging.manager=org.jboss.logmanager.LogManager"
45-
COPY build/lib/* /deployments/lib/
46-
COPY build/*-runner.jar /deployments/app.jar
45+
COPY target/lib/* /deployments/lib/
46+
COPY target/*-runner.jar /deployments/app.jar
4747

4848
EXPOSE 8080
4949
USER 1001

app/src/main/docker/Dockerfile.native

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Before building the container image run:
55
#
6-
# ./gradlew build -Dquarkus.package.type=native
6+
# ./mvnw package -Pnative
77
#
88
# Then, build the image with:
99
#
@@ -14,12 +14,12 @@
1414
# docker run -i --rm -p 8080:8080 quarkus/app
1515
#
1616
###
17-
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3
17+
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.4
1818
WORKDIR /work/
1919
RUN chown 1001 /work \
2020
&& chmod "g+rwX" /work \
2121
&& chown 1001:root /work
22-
COPY --chown=1001:root build/*-runner /work/application
22+
COPY --chown=1001:root target/*-runner /work/application
2323

2424
EXPOSE 8080
2525
USER 1001

app/src/main/docker/Dockerfile.native-distroless

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Before building the container image run:
55
#
6-
# ./gradlew build -Dquarkus.package.type=native
6+
# ./mvnw package -Pnative
77
#
88
# Then, build the image with:
99
#
@@ -15,7 +15,7 @@
1515
#
1616
###
1717
FROM quay.io/quarkus/quarkus-distroless-image:1.0
18-
COPY build/*-runner /application
18+
COPY target/*-runner /application
1919

2020
EXPOSE 8080
2121
USER nonroot

0 commit comments

Comments
 (0)