Skip to content

Commit

Permalink
Reactive-routes pgclient: Docker files and bench configs
Browse files Browse the repository at this point in the history
  • Loading branch information
franz1981 committed Nov 30, 2023
1 parent f3fb4d6 commit 193b371
Show file tree
Hide file tree
Showing 6 changed files with 88 additions and 0 deletions.
23 changes: 23 additions & 0 deletions frameworks/Java/quarkus/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,29 @@
"display_name": "Quarkus, Muggle",
"notes": "",
"versus": "Vert.x"
},
"reactive-routes-pgclient": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/queries?queries=",
"update_url": "/updates?queries=",
"fortune_url": "/fortunes",
"plaintext_url": "/plaintext",
"port": 8080,
"approach": "Realistic",
"classification": "fullstack",
"database": "Postgres",
"framework": "Quarkus",
"language": "Java",
"flavor": "None",
"orm": "Raw",
"platform": "Vert.x",
"webserver": "Vert.x",
"os": "Linux",
"database_os": "Linux",
"display_name": "Quarkus + Reactive Routes + PgClient",
"notes": "",
"versus": "Vert.x"
}
}
]
Expand Down
17 changes: 17 additions & 0 deletions frameworks/Java/quarkus/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,20 @@ orm = "Raw"
platform = "Vert.x"
webserver = "Vert.x"
versus = "Vert.x"

[reactive-routes-pgclient]
urls.plaintext = "/plaintext"
urls.json = "/json"
urls.db = "/db"
urls.query = "/queries?queries="
urls.update = "/updates?queries="
urls.fortune = "/fortunes"
approach = "Realistic"
classification = "fullstack"
database = "Postgres"
database_os = "Linux"
os = "Linux"
orm = "Raw"
platform = "Vert.x"
webserver = "Vert.x"
versus = "Vert.x"
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ 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
Expand Down
1 change: 1 addition & 0 deletions frameworks/Java/quarkus/quarkus-muggle.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ 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
Expand Down
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"
1 change: 1 addition & 0 deletions frameworks/Java/quarkus/quarkus.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ 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
Expand Down

0 comments on commit 193b371

Please sign in to comment.