All Downloads are FREE. Search and download functionalities are using the official Maven repository.

codacy.test.docker.RedisDocker.scala Maven / Gradle / Ivy

The newest version!
package codacy.test
package docker

import com.whisk.docker.{DockerContainer, DockerReadyChecker}

trait RedisDocker {

  val redisImage: String = "redis:2.8"

  val redisPort = 6379

  lazy val redisPorts =
    Seq(6379 -> Some(redisPort))

  val redisStartedSentence =
    "The server is now ready to accept connections"

  lazy val redisContainer = DockerContainer(redisImage)
    .withPorts(redisPorts: _*)
    .withReadyChecker(DockerReadyChecker.LogLineContains(redisStartedSentence))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy