public class DockerComposeRule extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DockerComposeRule.Builder |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RETRY_ATTEMPTS |
static org.joda.time.Duration |
DEFAULT_TIMEOUT |
Constructor and Description |
---|
DockerComposeRule(DockerComposeFiles files,
List<ClusterWait> clusterWaits,
LogCollector logCollector) |
Modifier and Type | Method and Description |
---|---|
void |
after() |
void |
before() |
static DockerComposeRule.Builder |
builder() |
List<ClusterWait> |
clusterWaits() |
Cluster |
containers() |
Docker |
docker() |
DockerCompose |
dockerCompose() |
DockerComposeExecutable |
dockerComposeExecutable() |
DockerExecutable |
dockerExecutable() |
String |
exec(DockerComposeExecOption options,
String containerName,
DockerComposeExecArgument arguments) |
DockerComposeFiles |
files() |
DockerPort |
hostNetworkedPort(int port) |
protected LogCollector |
logCollector() |
DockerMachine |
machine() |
protected org.joda.time.ReadableDuration |
nativeServiceHealthCheckTimeout() |
ProjectName |
projectName() |
protected boolean |
pullOnStartup() |
protected boolean |
removeConflictingContainersOnStartup() |
protected int |
retryAttempts() |
String |
run(DockerComposeRunOption options,
String containerName,
DockerComposeRunArgument arguments) |
ShutdownStrategy |
shutdownStrategy() |
public static final org.joda.time.Duration DEFAULT_TIMEOUT
public static final int DEFAULT_RETRY_ATTEMPTS
public DockerComposeRule(DockerComposeFiles files, List<ClusterWait> clusterWaits, LogCollector logCollector)
public DockerPort hostNetworkedPort(int port)
public DockerComposeFiles files()
public List<ClusterWait> clusterWaits()
public DockerMachine machine()
public ProjectName projectName()
public DockerComposeExecutable dockerComposeExecutable()
public DockerExecutable dockerExecutable()
public Docker docker()
public ShutdownStrategy shutdownStrategy()
public DockerCompose dockerCompose()
public Cluster containers()
protected int retryAttempts()
protected boolean removeConflictingContainersOnStartup()
protected boolean pullOnStartup()
protected org.joda.time.ReadableDuration nativeServiceHealthCheckTimeout()
protected LogCollector logCollector()
public void before() throws IOException, InterruptedException
IOException
InterruptedException
public void after()
public String exec(DockerComposeExecOption options, String containerName, DockerComposeExecArgument arguments) throws IOException, InterruptedException
IOException
InterruptedException
public String run(DockerComposeRunOption options, String containerName, DockerComposeRunArgument arguments) throws IOException, InterruptedException
IOException
InterruptedException
public static DockerComposeRule.Builder builder()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.