Skip to content

Commit

Permalink
Fix native tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaguililla committed Aug 16, 2023
1 parent d1b507b commit 5a43ee1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 17 deletions.
20 changes: 10 additions & 10 deletions frameworks/Kotlin/hexagon/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"notes": "http://hexagonkt.com",
"versus": "servlet"
},
"jettyloom": {
"jetty-native": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/query?queries=",
Expand All @@ -44,11 +44,11 @@
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "Hexagon Jetty Loom PostgreSQL",
"display_name": "Hexagon Jetty Native PostgreSQL",
"notes": "http://hexagonkt.com",
"versus": "servlet"
},
"jettyloom-pgclient": {
"jettyloom": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/query?queries=",
Expand All @@ -67,11 +67,11 @@
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "Hexagon Jetty Loom PgClient",
"display_name": "Hexagon Jetty Loom PostgreSQL",
"notes": "http://hexagonkt.com",
"versus": "servlet"
},
"nettyepoll": {
"jettyloom-pgclient": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/query?queries=",
Expand All @@ -86,15 +86,15 @@
"framework": "Hexagon",
"language": "Kotlin",
"orm": "Raw",
"platform": "Netty",
"platform": "Servlet",
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "Hexagon Netty Epoll PostgreSQL",
"display_name": "Hexagon Jetty Loom PgClient",
"notes": "http://hexagonkt.com",
"versus": "netty"
"versus": "servlet"
},
"nettyepoll-native": {
"nettyepoll": {
"json_url": "/json",
"db_url": "/db",
"query_url": "/query?queries=",
Expand All @@ -113,7 +113,7 @@
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "Hexagon Netty Epoll Native PgClient",
"display_name": "Hexagon Netty Epoll PostgreSQL",
"notes": "http://hexagonkt.com",
"versus": "netty"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Args= \
-H:IncludeResources=.*\\.(html|class) \
--enable-preview \
--static \
--libc=musl \
--initialize-at-build-time=org.slf4j.jul.JDK14LoggerAdapter \
--initialize-at-build-time=org.slf4j.jul.JDK14LoggerAdapter$1 \
--initialize-at-build-time=org.slf4j.LoggerFactory
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#
# BUILD
#
FROM ghcr.io/graalvm/native-image-community:17-ol9 as build
FROM ghcr.io/graalvm/native-image-community:17-muslib-ol9 as build
USER root
WORKDIR /hexagon

ADD . .
RUN microdnf -y install findutils
RUN ./gradlew --quiet classes
RUN ./gradlew --quiet -x test nativeCompile
RUN ./gradlew --quiet -x test hexagon_jetty_postgresql:nativeCompile

#
# RUNTIME
#
FROM scratch
ARG PROJECT=hexagon_nettyepoll_postgresql
ARG PROJECT=hexagon_jetty_postgresql

COPY --from=build /hexagon/$PROJECT/build/native/nativeCompile/$PROJECT /

ENTRYPOINT [ "/hexagon_nettyepoll_postgresql" ]
ENTRYPOINT [ "/hexagon_jetty_postgresql" ]
4 changes: 2 additions & 2 deletions frameworks/Kotlin/hexagon/hexagon-nima-native.dockerfile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#
# BUILD
#
FROM ghcr.io/graalvm/native-image-community:17-ol9 as build
FROM ghcr.io/graalvm/native-image-community:20-muslib-ol9 as build
USER root
WORKDIR /hexagon

ADD . .
RUN microdnf -y install findutils
RUN ./gradlew --quiet classes
RUN ./gradlew --quiet -x test nativeCompile
RUN ./gradlew --quiet -x test hexagon_nima_postgresql:nativeCompile

#
# RUNTIME
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Args=-H:IncludeResources=.*\\.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

apply(from: "$gradleScripts/native.gradle")
apply(from: "$gradleScripts/application.gradle")

dependencies {
Expand Down

0 comments on commit 5a43ee1

Please sign in to comment.