This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
Update the Play Framework projects to more recent version - #3849
Merged
NateBrady23 merged 1 commit intoJun 12, 2018
Merged
Conversation
…st version: 2.6.15 Also update the dockerfiles to use a more recent base, allowing use of Scala 2.12.6 and sbt 1.1.5 Apart from that, I noticed some docker files providing extra JVM options. Considering these are all using the same framework, I feel either all dockerfiles should use it or non of them. Otherwise, the comparison between them is off. Lastly, I added some code to the dockerfile to properly disable the http server that's not being used in the build that will be done by the dockerfile. For instance: when running netty server, it's perfectly fine to disable the AkkaHttpPlugin. And vice versa. This prevents their jars from being put on the classpath.
KoenDG
commented
Jun 8, 2018
|
|
||
| RUN sbt stage | ||
| CMD ["target/universal/stage/bin/play2-java-ebean-hikaricp", "-Dplay.server.provider=play.core.server.NettyServerProvider"] | ||
| CMD ["target/universal/stage/bin/play2-java-ebean-hikaricp", "-Dplay.server.provider=play.core.server.NettyServerProvider", "-J-server", "-J-Xms1g", "-J-Xmx1g", "-J-XX:NewSize=512m", "-J-XX:+UseG1GC", "-J-XX:MaxGCPauseMillis=30", "-J-XX:-UseBiasedLocking", "-J-XX:+AlwaysPreTouch"] |
Contributor
Author
There was a problem hiding this comment.
I found this being used on 2 of the scala versions and nowhere else. So I added it everywhere. For comparison's sake, all configurations for the same framework should use the same parameters as much as possible.
KoenDG
commented
Jun 8, 2018
| @@ -1,5 +1,8 @@ | |||
| FROM hseeberger/scala-sbt:8u151-2.12.5-1.1.2 | |||
| FROM hseeberger/scala-sbt:8u171_2.12.6_1.1.5 | |||
Contributor
Author
There was a problem hiding this comment.
Most recent version of that image
KoenDG
commented
Jun 8, 2018
|
|
||
| # Whether the Netty wire should be logged | ||
| log.wire = false | ||
|
|
Contributor
Author
There was a problem hiding this comment.
Added this to all application.conf files. Disabling a logging setting, as it's not needed. And then 2 settings which, according to the documentation, should have better performance/be more fair.
KoenDG
commented
Jun 8, 2018
| WORKDIR /play2 | ||
| COPY play2-java-ebean-hikaricp . | ||
|
|
||
| RUN sed -i 's/.enablePlugins(PlayJava, PlayEbean, PlayNettyServer)/.enablePlugins(PlayJava, PlayEbean, PlayNettyServer).disablePlugins(PlayAkkaHttpServer)/g' build.sbt |
Contributor
Author
There was a problem hiding this comment.
Disabling server that isn't actually going to run, this is the netty dockerfile, netty is going to act as the http server here, not akka.
roberthusak
pushed a commit
to roberthusak/FrameworkBenchmarks
that referenced
this pull request
Nov 6, 2018
…st version: 2.6.15 (TechEmpower#3849) Also update the dockerfiles to use a more recent base, allowing use of Scala 2.12.6 and sbt 1.1.5 Apart from that, I noticed some docker files providing extra JVM options. Considering these are all using the same framework, I feel either all dockerfiles should use it or non of them. Otherwise, the comparison between them is off. Lastly, I added some code to the dockerfile to properly disable the http server that's not being used in the build that will be done by the dockerfile. For instance: when running netty server, it's perfectly fine to disable the AkkaHttpPlugin. And vice versa. This prevents their jars from being put on the classpath.
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update the configurations of the play framework to their current latest version: 2.6.15
Also update the dockerfiles to use a more recent base, allowing use of Scala 2.12.6 and sbt 1.1.5
Apart from that, I noticed some docker files providing extra JVM options. Considering these are all using the same framework, I feel either all dockerfiles should use it or non of them. Otherwise, the comparison between them is off.
Lastly, I added some code to the dockerfile to properly disable the http server that's not being used in the build that will be done by the dockerfile.
For instance: when running netty server, it's perfectly fine to disable the AkkaHttpPlugin. And vice versa. This prevents their jars from being put on the classpath.