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

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

The newest version!
package codacy.test
package docker

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

trait RabbitDocker {

  val rabbitImage: String = "rabbitmq:3.7"

  val rabbitPort = 5672

  lazy val rabbitPorts =
    Seq(5672 -> Some(rabbitPort))

  val rabbitStartedSentence =
    "Server startup complete"

  lazy val rabbitContainer = DockerContainer(rabbitImage)
    .withPorts(rabbitPorts: _*)
    .withReadyChecker(DockerReadyChecker.LogLineContains(rabbitStartedSentence))

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy