@@ -116,13 +116,8 @@ lazy val dockerSettings = Seq(
116
116
117
117
val sparkBuild = s " spark- $sparkVersion"
118
118
val sparkBuildCmd = scalaBinaryVersion.value match {
119
- case " 2.10" =>
120
- " ./make-distribution.sh -Phadoop-2.4 -Phive"
121
119
case " 2.11" =>
122
- """
123
- |./dev/change-scala-version.sh 2.11 && \
124
- |./make-distribution.sh -Dscala-2.11 -Phadoop-2.4 -Phive
125
- """ .stripMargin.trim
120
+ " ./make-distribution.sh -Dscala-2.11 -Phadoop-2.7 -Phive"
126
121
case other => throw new RuntimeException (s " Scala version $other is not supported! " )
127
122
}
128
123
@@ -170,7 +165,13 @@ lazy val dockerSettings = Seq(
170
165
imageNames in docker := Seq (
171
166
sbtdocker.ImageName (namespace = Some (" velvia" ),
172
167
repository = " spark-jobserver" ,
173
- tag = Some (s " ${version.value}.mesos- ${mesosVersion.split('-' )(0 )}.spark- $sparkVersion.scala- ${scalaBinaryVersion.value}" ))
168
+ tag = Some (
169
+ s " ${version.value}" +
170
+ s " .mesos- ${mesosVersion.split('-' )(0 )}" +
171
+ s " .spark- $sparkVersion" +
172
+ s " .scala- ${scalaBinaryVersion.value}" +
173
+ s " .jdk- $javaVersion" )
174
+ )
174
175
)
175
176
)
176
177
@@ -208,8 +209,7 @@ lazy val runScalaStyle = taskKey[Unit]("testScalaStyle")
208
209
lazy val commonSettings = Defaults .coreDefaultSettings ++ dirSettings ++ implicitlySettings ++ Seq (
209
210
organization := " spark.jobserver" ,
210
211
crossPaths := true ,
211
- crossScalaVersions := Seq (" 2.10.6" ," 2.11.8" ),
212
- scalaVersion := sys.env.getOrElse(" SCALA_VERSION" , " 2.10.6" ),
212
+ scalaVersion := sys.env.getOrElse(" SCALA_VERSION" , " 2.11.8" ),
213
213
dependencyOverrides += " org.scala-lang" % " scala-compiler" % scalaVersion.value,
214
214
publishTo := Some (Resolver .file(" Unused repo" , file(" target/unusedrepo" ))),
215
215
// scalastyleFailOnError := true,
@@ -250,4 +250,4 @@ lazy val publishSettings = Seq(
250
250
251
251
// This is here so we can easily switch back to Logback when Spark fixes its log4j dependency.
252
252
lazy val jobServerLogbackLogging = " -Dlogback.configurationFile=config/logback-local.xml"
253
- lazy val jobServerLogging = " -Dlog4j.configuration=file:config/log4j-local.properties"
253
+ lazy val jobServerLogging = " -Dlog4j.configuration=file:config/log4j-local.properties"
0 commit comments