<commit_before>//@see https://github.com/marcuslonnberg/sbt-docker
//@see https://github.com/marcuslonnberg/sbt-docker/blob/master/examples/package-spray/build.sbt
//@see https://velvia.github.io/Docker-Scala-Sbt/

import sbt.Keys.{artifactPath, libraryDependencies, mainClass, managedClasspath, name, organization, packageBin, resolvers, version}

logLevel := Level.Debug

val rootName = "smart-meter"
name := "docker-" + rootName + "-inject"
organization := "logimethods"
val tag = "inject"

version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.8"
val gatlingVersion = "2.2.2"
val natsConnectorGatlingVersion = "0.3.0-SNAPSHOT"

libraryDependencies ++= Seq("com.logimethods" %% "nats-connector-gatling" % natsConnectorGatlingVersion)
// https://mvnrepository.com/artifact/org.scalanlp/breeze_2.11
libraryDependencies += "org.scalanlp" % "breeze_2.11" % "0.12"

resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
resolvers += "Sonatype OSS Release" at "https://oss.sonatype.org/content/groups/public/"

enablePlugins(DockerPlugin)

imageNames in docker := Seq(
  ImageName(s"${organization.value}/${rootName}:${tag}")
)

// Define a Dockerfile
dockerfile in docker := {
  val jarFile: File = sbt.Keys.`package`.in(Compile, packageBin).value
  val classpath = (managedClasspath in Compile).value
  val jarTarget = s"./lib/${jarFile.getName}"

  new Dockerfile {
    // Use a base image that contain Gatling
	from("denvazh/gatling:" + gatlingVersion)
    // Add all files on the classpath
    add(classpath.files, "./lib/")
    // Add the JAR file
    copy(jarFile, jarTarget)
    // Add Gatling User Files
    add(baseDirectory.value / "user-files", "./user-files")
    
//    cmd("--no-reports", "-s", "com.logimethods.nats.demo.NatsInjection")
  }
}<commit_msg>libraryDependencies += "io.gatling"<commit_after>//@see https://github.com/marcuslonnberg/sbt-docker
//@see https://github.com/marcuslonnberg/sbt-docker/blob/master/examples/package-spray/build.sbt
//@see https://velvia.github.io/Docker-Scala-Sbt/

import sbt.Keys.{artifactPath, libraryDependencies, mainClass, managedClasspath, name, organization, packageBin, resolvers, version}

logLevel := Level.Debug

val rootName = "smart-meter"
name := "docker-" + rootName + "-inject"
organization := "logimethods"
val tag = "inject"

version := "0.1.0-SNAPSHOT"
scalaVersion := "2.11.8"
val gatlingVersion = "2.2.2"
val natsConnectorGatlingVersion = "0.3.0-SNAPSHOT"

libraryDependencies ++= Seq("com.logimethods" %% "nats-connector-gatling" % natsConnectorGatlingVersion)
// https://mvnrepository.com/artifact/org.scalanlp/breeze_2.11
libraryDependencies += "org.scalanlp" % "breeze_2.11" % "0.12"
libraryDependencies += "io.gatling" % "gatling-core" % gatlingVersion

resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots"
resolvers += "Sonatype OSS Release" at "https://oss.sonatype.org/content/groups/public/"

enablePlugins(DockerPlugin)

imageNames in docker := Seq(
  ImageName(s"${organization.value}/${rootName}:${tag}")
)

// Define a Dockerfile
dockerfile in docker := {
  val jarFile: File = sbt.Keys.`package`.in(Compile, packageBin).value
  val classpath = (managedClasspath in Compile).value
  val jarTarget = s"./lib/${jarFile.getName}"

  new Dockerfile {
    // Use a base image that contain Gatling
	from("denvazh/gatling:" + gatlingVersion)
    // Add all files on the classpath
    add(classpath.files, "./lib/")
    // Add the JAR file
    copy(jarFile, jarTarget)
    // Add Gatling User Files
    add(baseDirectory.value / "user-files", "./user-files")
    
//    cmd("--no-reports", "-s", "com.logimethods.nats.demo.NatsInjection")
  }
}
{'fraction_non_alphanumeric': 0.15776699029126215, 'fraction_numerical': 0.011866235167206042, 'mean_word_length': 4.367583212735166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 12, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2331630', 'n_tokens_mistral': 1372, 'n_tokens_neox': 1314, 'n_words': 247}