Skip to content

Commit 48c00ce

Browse files
committed
Add Dockerfile for Play 2.7.4
1 parent 99642fe commit 48c00ce

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

2.7.4/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM openjdk:11-jdk
2+
3+
RUN echo "deb http://dl.bintray.com/sbt/debian /" | tee -a /etc/apt/sources.list.d/sbt.list
4+
5+
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
6+
7+
RUN apt-get update && apt-get install -y --no-install-recommends unzip bash openssh-client nodejs git ca-certificates fontconfig xvfb libpango1.0-0 libxss1 fonts-liberation libappindicator1 xdg-utils libgtk-3-0 lsb-release libasound2 libxtst6 libnss3 libappindicator3-1 sbt && rm -rf /var/lib/apt/lists/*
8+
9+
COPY play /tmp/play
10+
11+
RUN cd /tmp/play && sbt update && rm -Rf /tmp/play
12+
13+
ENV PHANTOM_JS phantomjs-2.1.1-linux-x86_64
14+
15+
RUN cd /opt \
16+
&& wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 \
17+
&& tar xvjf $PHANTOM_JS.tar.bz2 \
18+
&& mv $PHANTOM_JS /usr/local/share \
19+
&& ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin
20+
21+
RUN cd /opt \
22+
&& wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb \
23+
&& dpkg -i google-chrome-stable_current_amd64.deb
24+
25+
RUN cd /opt \
26+
&& wget https://chromedriver.storage.googleapis.com/80.0.3987.106/chromedriver_linux64.zip \
27+
&& unzip chromedriver_linux64.zip
28+
29+
VOLUME /src

2.7.4/play/build.sbt

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean, SbtWeb)
2+
3+
scalaVersion := "2.12.10"
4+
5+
libraryDependencies ++= Seq(
6+
javaJdbc,
7+
ehcache,
8+
javaWs,
9+
guice,
10+
"mysql" % "mysql-connector-java" % "5.1.29",
11+
"org.mindrot" % "jbcrypt" % "0.3m",
12+
"org.codemonkey.simplejavamail" % "simple-java-mail" % "2.1",
13+
"org.apache.pdfbox" % "pdfbox" % "1.8.4",
14+
"org.xhtmlrenderer" % "core-renderer" % "R8",
15+
"org.mockito" % "mockito-all" % "1.9.5" % "test",
16+
"org.hamcrest" % "hamcrest-all" % "1.3" % "test",
17+
"com.google.api-client" % "google-api-client" % "1.19.1",
18+
"com.github.rjeschke" % "txtmark" % "0.13",
19+
"org.yaml" % "snakeyaml" % "1.17",
20+
"org.seleniumhq.selenium" % "selenium-chrome-driver" % "3.141.59" % "test",
21+
"org.apache.commons" % "commons-lang3" % "3.10",
22+
"io.swagger" %% "swagger-play2" % "1.6.1",
23+
"com.fasterxml.jackson.datatype" % "jackson-datatype-joda" % "2.9.10",
24+
"org.glassfish.jaxb" % "jaxb-core" % "2.3.0.1",
25+
"org.glassfish.jaxb" % "jaxb-runtime" % "2.3.2"
26+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=1.2.8

2.7.4/play/project/plugins.sbt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
resolvers += Resolver.bintrayIvyRepo("lolhens", "sbt-plugins")
2+
3+
4+
// The Play plugin
5+
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.7.4")
6+
7+
// web plugins
8+
addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "5.0.2")
9+
addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.4.4")
10+
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.1.2")
11+
addSbtPlugin("com.github.akiomik" % "sbt-uglify-es" % "1.0.0")
12+
addSbtPlugin("de.lolhens.sbt" % "sbt-css-compress" % "0.2.0")
13+
addSbtPlugin("com.typesafe.sbt" % "sbt-digest" % "1.1.3")
14+
addSbtPlugin("com.typesafe.sbt" % "sbt-gzip" % "1.0.2")
15+
addSbtPlugin("com.github.sbt" % "sbt-jacoco" % "3.1.0")
16+

0 commit comments

Comments
 (0)