forked from LesnyRumcajs/grpc_bench
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix Dockerfiles so heap configuration is actually used
JAVA_OPTS is not recognized by the JVM using _JAVA_OPTIONS instead. this worked in the java benchmarks because the script we use to launch accepts that
- Loading branch information
1 parent
da76354
commit dcff165
Showing
3 changed files
with
21 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
FROM hseeberger/scala-sbt:11.0.7_1.3.13_2.11.12 | ||
FROM hseeberger/scala-sbt:11.0.7_1.3.13_2.11.12 as BUILDER | ||
|
||
WORKDIR /app | ||
COPY scala_akka_bench /app | ||
COPY proto/helloworld/helloworld.proto /app/src/main/protobuf/helloworld.proto | ||
|
||
RUN sbt compile | ||
RUN sbt assembly | ||
|
||
FROM adoptopenjdk:16_36-jdk-hotspot | ||
|
||
ENV GC "-XX:+UseParallelGC" | ||
ENV JAVA_OPTS "${GC} -XX:MinRAMPercentage=70 -XX:MaxRAMPercentage=70" | ||
ENV _JAVA_OPTIONS "${GC} -XX:MinRAMPercentage=70 -XX:MaxRAMPercentage=70" | ||
|
||
COPY --from=builder /app/target/scala-2.13/akka-grpc-quickstart-scala-assembly-1.0.jar . | ||
|
||
ENTRYPOINT ["/usr/local/openjdk-11/bin/java", "-jar", "/app/target/scala-2.13/akka-grpc-quickstart-scala-assembly-1.0.jar"] | ||
ENTRYPOINT ["java", "-jar", "akka-grpc-quickstart-scala-assembly-1.0.jar"] |
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
FROM hseeberger/scala-sbt:11.0.7_1.3.13_2.11.12 | ||
FROM hseeberger/scala-sbt:11.0.7_1.3.13_2.11.12 as BUILDER | ||
|
||
WORKDIR /app | ||
COPY scala_fs2_bench /app | ||
COPY proto/helloworld/helloworld.proto /app/src/main/protobuf/helloworld.proto | ||
|
||
RUN sbt compile | ||
RUN sbt assembly | ||
|
||
FROM adoptopenjdk:16_36-jdk-hotspot | ||
|
||
ENV GC "-XX:+UseParallelGC" | ||
ENV JAVA_OPTS "${GC} -XX:MinRAMPercentage=70 -XX:MaxRAMPercentage=70" | ||
ENV _JAVA_OPTIONS "${GC} -XX:MinRAMPercentage=70 -XX:MaxRAMPercentage=70" | ||
|
||
COPY --from=builder /app/target/scala-2.13/fs2-grpc-quickstart-scala-assembly-1.0.jar . | ||
|
||
ENTRYPOINT ["/usr/local/openjdk-11/bin/java", "-jar", "/app/target/scala-2.13/fs2-grpc-quickstart-scala-assembly-1.0.jar"] | ||
ENTRYPOINT ["java", "-jar", "fs2-grpc-quickstart-scala-assembly-1.0.jar"] |
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 |
---|---|---|
@@ -1,13 +1,16 @@ | ||
FROM hseeberger/scala-sbt:11.0.7_1.3.13_2.11.12 | ||
FROM hseeberger/scala-sbt:11.0.7_1.3.13_2.11.12 as BUILDER | ||
|
||
WORKDIR /app | ||
COPY scala_zio_bench /app | ||
COPY proto/helloworld/helloworld.proto /app/src/main/protobuf/helloworld.proto | ||
|
||
RUN sbt compile | ||
RUN sbt assembly | ||
|
||
FROM adoptopenjdk:16_36-jdk-hotspot | ||
|
||
ENV GC "-XX:+UseParallelGC" | ||
ENV JAVA_OPTS "${GC} -XX:MinRAMPercentage=70 -XX:MaxRAMPercentage=70" | ||
ENV _JAVA_OPTIONS "${GC} -XX:MinRAMPercentage=70 -XX:MaxRAMPercentage=70" | ||
|
||
COPY --from=builder /app/target/scala-2.13/zio-grpc-quickstart-scala-assembly-1.0.jar . | ||
|
||
ENTRYPOINT ["/usr/local/openjdk-11/bin/java", "-jar", "/app/target/scala-2.13/zio-grpc-quickstart-scala-assembly-1.0.jar"] | ||
ENTRYPOINT ["java", "-jar", "zio-grpc-quickstart-scala-assembly-1.0.jar"] |