-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reactive-routes pgclient: Docker files and bench configs
- Loading branch information
Showing
6 changed files
with
88 additions
and
0 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
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
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
45 changes: 45 additions & 0 deletions
45
frameworks/Java/quarkus/quarkus-reactive-routes-pgclient.dockerfile
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM registry.access.redhat.com/ubi8/openjdk-17:1.15 as maven | ||
ENV LANGUAGE='en_US:en' | ||
|
||
WORKDIR /quarkus | ||
ENV MODULE=reactive-routes-pgclient | ||
|
||
COPY --chown=185 pom.xml pom.xml | ||
COPY --chown=185 quarkus-benchmark-common quarkus-benchmark-common/ | ||
COPY --chown=185 resteasy-reactive-hibernate resteasy-reactive-hibernate/ | ||
COPY --chown=185 resteasy-reactive-hibernate-reactive resteasy-reactive-hibernate-reactive/ | ||
COPY --chown=185 muggle muggle/ | ||
COPY --chown=185 reactive-routes-pgclient reactive-routes-pgclient/ | ||
|
||
# Uncomment to test pre-release quarkus | ||
#RUN mkdir -p /root/.m2/repository/io | ||
#COPY m2-quarkus /root/.m2/repository/io/quarkus | ||
|
||
USER 185 | ||
WORKDIR /quarkus | ||
RUN mvn -DskipTests install -pl :benchmark,:quarkus-benchmark-common -B -q | ||
|
||
WORKDIR /quarkus/$MODULE | ||
RUN mvn dependency:go-offline -B -q | ||
WORKDIR /quarkus | ||
|
||
COPY $MODULE/src $MODULE/src | ||
|
||
WORKDIR /quarkus/$MODULE | ||
RUN mvn package -B -q | ||
WORKDIR /quarkus | ||
|
||
FROM registry.access.redhat.com/ubi8/openjdk-17-runtime:1.15 | ||
ENV LANGUAGE='en_US:en' | ||
WORKDIR /quarkus | ||
ENV MODULE=reactive-routes-pgclient | ||
|
||
COPY --chown=185 --from=maven /quarkus/$MODULE/target/quarkus-app/lib/ lib | ||
COPY --chown=185 --from=maven /quarkus/$MODULE/target/quarkus-app/app/ app | ||
COPY --chown=185 --from=maven /quarkus/$MODULE/target/quarkus-app/quarkus/ quarkus | ||
COPY --chown=185 --from=maven /quarkus/$MODULE/target/quarkus-app/quarkus-run.jar quarkus-run.jar | ||
COPY --chown=185 run_quarkus.sh run_quarkus.sh | ||
|
||
EXPOSE 8080 | ||
USER 185 | ||
ENTRYPOINT "./run_quarkus.sh" |
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