You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
640 B
Kotlin
21 lines
640 B
Kotlin
package io.provs
|
|
|
|
import io.provs.processors.ContainerStartMode
|
|
import io.provs.processors.ContainerUbuntuHostProcessor
|
|
|
|
val DEFAULT_START_MODE_TEST_CONTAINER = ContainerStartMode.USE_RUNNING_ELSE_CREATE
|
|
|
|
val testDockerWithSudo = !"true".equals(System.getProperty("testdockerwithoutsudo")?.toLowerCase())
|
|
|
|
const val defaultTestContainerName = "provs_test"
|
|
|
|
fun defaultTestContainer(): Prov {
|
|
return Prov.newInstance(
|
|
ContainerUbuntuHostProcessor(
|
|
defaultTestContainerName,
|
|
startMode = DEFAULT_START_MODE_TEST_CONTAINER,
|
|
sudo = testDockerWithSudo
|
|
)
|
|
)
|
|
}
|