Define env. var. for max. Heap size in the FASTEN server's Docker file so that the heap size can be overriden in K8s manifest files for each plugin
@@ -5,4 +5,6 @@ WORKDIR /
ADD server/server-0.0.1-SNAPSHOT-with-dependencies.jar server-0.0.1-SNAPSHOT-with-dependencies.jar
COPY /plugins/. /plugins
-ENTRYPOINT ["java", "-Xmx16g", "-XX:+ExitOnOutOfMemoryError", "-cp", "server-0.0.1-SNAPSHOT-with-dependencies.jar", "eu.fasten.server.FastenServer", "-p", "./plugins"]
+ENV JVM_MEM_MAX="-Xmx16g"
+
+ENTRYPOINT java $JVM_MEM_MAX -XX:+ExitOnOutOfMemoryError -cp server-0.0.1-SNAPSHOT-with-dependencies.jar eu.fasten.server.FastenServer -p ./plugins
