codacy.test.docker.RedisDocker.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codacy-test-bench_2.13 Show documentation
Show all versions of codacy-test-bench_2.13 Show documentation
A library to send events on rabbit-mq
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))
}