本文整理了Java中com.palantir.docker.compose.DockerComposeRule.clusterWaits()
方法的一些代码示例,展示了DockerComposeRule.clusterWaits()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DockerComposeRule.clusterWaits()
方法的具体详情如下:
包路径:com.palantir.docker.compose.DockerComposeRule
类名称:DockerComposeRule
方法名:clusterWaits
暂无
代码示例来源:origin: palantir/docker-compose-rule
@Test
public void union_cluster_waits_from_builder_instead_of_overwriting() {
ClusterWait firstWait = mock(ClusterWait.class);
ClusterWait secondWait = mock(ClusterWait.class);
DockerComposeRule twoAssignments = defaultBuilder()
.clusterWaits(ImmutableList.of(firstWait))
.clusterWaits(ImmutableList.of(secondWait))
.build();
assertThat(twoAssignments.clusterWaits(), contains(firstWait, secondWait));
}
代码示例来源:origin: com.palantir.docker.compose/docker-compose-rule-junit4
@Override
public void before() throws IOException, InterruptedException {
log.debug("Starting docker-compose cluster");
dockerCompose().build();
DockerCompose upDockerCompose = dockerCompose();
if (removeConflictingContainersOnStartup()) {
upDockerCompose = new ConflictingContainerRemovingDockerCompose(upDockerCompose, docker());
}
upDockerCompose.up();
logCollector().startCollecting(dockerCompose());
log.debug("Waiting for services");
clusterWaits().forEach(clusterWait -> clusterWait.waitUntilReady(containers()));
log.debug("docker-compose cluster started");
}
代码示例来源:origin: com.palantir.docker.compose/docker-compose-rule
@Override
public void before() throws IOException, InterruptedException {
log.debug("Starting docker-compose cluster");
dockerCompose().build();
DockerCompose upDockerCompose = dockerCompose();
if (removeConflictingContainersOnStartup()) {
upDockerCompose = new ConflictingContainerRemovingDockerCompose(upDockerCompose, docker());
}
upDockerCompose.up();
logCollector().startCollecting(dockerCompose());
log.debug("Waiting for services");
clusterWaits().forEach(clusterWait -> clusterWait.waitUntilReady(containers()));
log.debug("docker-compose cluster started");
}
代码示例来源:origin: palantir/docker-compose-rule
@Override
public void before() throws IOException, InterruptedException {
log.debug("Starting docker-compose cluster");
if (pullOnStartup()) {
dockerCompose().pull();
}
dockerCompose().build();
DockerCompose upDockerCompose = dockerCompose();
if (removeConflictingContainersOnStartup()) {
upDockerCompose = new ConflictingContainerRemovingDockerCompose(upDockerCompose, docker());
}
upDockerCompose.up();
logCollector().startCollecting(dockerCompose());
log.debug("Waiting for services");
new ClusterWait(ClusterHealthCheck.nativeHealthChecks(), nativeServiceHealthCheckTimeout())
.waitUntilReady(containers());
clusterWaits().forEach(clusterWait -> clusterWait.waitUntilReady(containers()));
log.debug("docker-compose cluster started");
}
内容来源于网络,如有侵权,请联系作者删除!