case class DockerComposeSetup(setupName: String, composeFiles: Seq[Path], workingDirectory: Path, environment: Map[String, String]) extends Product with Serializable
- Alphabetic
- By Inheritance
- DockerComposeSetup
- Serializable
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DockerComposeSetup(setupName: String, composeFiles: Seq[Path], workingDirectory: Path, environment: Map[String, String])
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def checkContainersRemoval(): Boolean
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- val composeFiles: Seq[Path]
- def dockerComposeDown(): Boolean
- def dockerComposeUp(): Boolean
-
def
down(): Boolean
Executes docker-compose down command using setup defined.
Executes docker-compose down command using setup defined.
- returns
true if all containers were stopped and removed otherwise false
-
def
dumpLogs(fileName: String, target: Path): Try[Unit]
Dump logs from STDOUT using docker-compose logs for each service.
Dump logs from STDOUT using docker-compose logs for each service. Logs will be saved to target dir in a zip file with the name specified.
- fileName
zip file name
- target
directory where zip file will be saved
- returns
Try object that if fails contains exception, otherwise returns nothing
- val environment: Map[String, String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- implicit val executionContext: ExecutionContext
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getContainerLogs(serviceName: Option[String]): List[String]
- def getContainerMappedPort(containerId: String, port: Int): String
- def getProjectContainerIds(): List[String]
- def getServiceContainerIds(serviceName: String): List[String]
-
def
getServiceMappedPort(name: String, bindedPort: Int): Seq[String]
Retrieves port that was mapped to binded port for specified service.
Retrieves port that was mapped to binded port for specified service.
- name
service name
- bindedPort
port that was binded to some specific port
- returns
Returns a list of ports from all service containers that have binded port
- def getServices(): List[String]
- def isContainerWithHealthCheck(containerId: String): Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
runCmd(command: Seq[String], cwd: File, envVars: Map[String, String], timeout: Duration): Boolean
Runs a command using specified working directory.
Runs a command using specified working directory.
- command
list of strings that compose the command
- cwd
working directory where command will be ran
- returns
true if command ran with success
-
def
runCmdWithOutput(command: Seq[String], cwd: File, envVars: Map[String, String], timeout: Duration): Try[List[String]]
Runs a command using specified working directory.
Runs a command using specified working directory.
- command
list of strings that compose the command
- cwd
working directory where command will be ran
- returns
a Try object with output lines list if succeeds
- val setupName: String
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
up(timeOut: Duration): Boolean
Executes docker-compose up command using setup defined and waits for all containers with healthchecks to be in a healthy state.
Executes docker-compose up command using setup defined and waits for all containers with healthchecks to be in a healthy state.
- timeOut
maximum time for all containers be in a healthy state
- returns
true if all containers started and achieved a healthy state otherwise false
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- def waitForAllHealthyContainers(timeout: Duration): Boolean
- def waitForHealthyContainer(containerId: String, timeout: Duration): Boolean
- val workingDirectory: Path