Skip to content

Commit 0edb0b4

Browse files
committed
Add Play 2.6.20
1 parent 42688df commit 0edb0b4

File tree

4 files changed

+51
-0
lines changed

4 files changed

+51
-0
lines changed

2.6.20/Dockerfile

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM java:openjdk-8-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 libnss3 sbt && rm -rf /var/lib/apt/lists/* && ln -s /usr/bin/nodejs /usr/bin/node
8+
9+
COPY play /tmp/play
10+
11+
RUN cd /tmp/play && sbt compile && 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/2.45/chromedriver_linux64.zip \
27+
&& unzip chromedriver_linux64.zip
28+
29+
VOLUME /src

2.6.20/play/build.sbt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
lazy val root = (project in file(".")).enablePlugins(PlayJava, PlayEbean, SbtWeb)
2+
3+
scalaVersion := "2.11.7"
4+
5+
javacOptions ++= Seq("-source", "1.8", "-target", "1.8")
6+
7+
libraryDependencies ++= Seq(
8+
javaJdbc,
9+
cache,
10+
javaWs,
11+
"mysql" % "mysql-connector-java" % "5.1.29"
12+
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sbt.version=0.13.11

2.6.20/play/project/plugins.sbt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// The Typesafe repository
2+
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
3+
4+
5+
// The Play plugin
6+
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.6.20")
7+
addSbtPlugin("com.typesafe.sbt" % "sbt-play-ebean" % "4.0.6")
8+
addSbtPlugin("com.typesafe.sbt" % "sbt-web" % "1.4.3")
9+
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0")

0 commit comments

Comments
 (0)