Skip to content

Commit 0df505b

Browse files
author
jj
committed
Add graalvm to ring-http-exchange
Enable running ring-http-exchange on graalvm Change group-id/artifactid/name in pom.xml to ring-http-exchage
1 parent 434b2bc commit 0df505b

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed

frameworks/Clojure/ring-http-exchange/benchmark_config.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,50 @@
4040
"database_os": "Linux",
4141
"display_name": "ring-http-exchange-robaho",
4242
"notes": "",
43+
"versus": "httpserver-robaho"
44+
}
45+
},
46+
{
47+
"graalvm": {
48+
"json_url": "/json",
49+
"plaintext_url": "/plaintext",
50+
"port": 8080,
51+
"approach": "Realistic",
52+
"classification": "Platform",
53+
"database": "None",
54+
"framework": "None",
55+
"language": "Clojure",
56+
"flavor": "None",
57+
"orm": "None",
58+
"platform": "None",
59+
"webserver": "None",
60+
"os": "Linux",
61+
"database_os": "Linux",
62+
"display_name": "ring-http-exchange-graalvm",
63+
"notes": "",
4364
"versus": "ring-http-exchange"
4465
}
66+
},
67+
{
68+
"robaho-graalvm": {
69+
"json_url": "/json",
70+
"plaintext_url": "/plaintext",
71+
"port": 8080,
72+
"approach": "Realistic",
73+
"classification": "Platform",
74+
"database": "None",
75+
"framework": "None",
76+
"language": "Clojure",
77+
"flavor": "None",
78+
"orm": "None",
79+
"platform": "None",
80+
"webserver": "None",
81+
"os": "Linux",
82+
"database_os": "Linux",
83+
"display_name": "ring-http-exchange-robaho-graalvm",
84+
"notes": "",
85+
"versus": "ring-http-exchange-robaho"
86+
}
4587
}
4688
]
4789
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM maven:3-eclipse-temurin-24-alpine as maven
2+
WORKDIR /ring-http-exchange
3+
COPY pom.xml pom.xml
4+
COPY src src
5+
RUN mvn clean clojure:compile package
6+
7+
FROM ghcr.io/graalvm/graalvm-community:24
8+
WORKDIR /ring-http-exchange
9+
COPY --from=maven /ring-http-exchange/target/ring-http-server-1.0.0-jar-with-dependencies.jar app.jar
10+
11+
EXPOSE 8080
12+
13+
CMD ["java", "-server", "-XX:+UseParallelGC", "-jar", "app.jar"]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM maven:3-eclipse-temurin-24-alpine as maven
2+
WORKDIR /ring-http-exchange
3+
COPY pom.xml pom.xml
4+
COPY src src
5+
RUN mvn clean clojure:compile -P robaho package
6+
7+
FROM ghcr.io/graalvm/graalvm-community:24
8+
WORKDIR /ring-http-exchange
9+
COPY --from=maven /ring-http-exchange/target/ring-http-server-1.0.0-jar-with-dependencies.jar app.jar
10+
11+
EXPOSE 8080
12+
13+
CMD ["java", "-server", "-XX:+UseParallelGC", "-jar", "app.jar"]

0 commit comments

Comments
 (0)