use of com.palantir.docker.compose.connection.Container in project kafka-connect-cdc-mssql by jcustenborder.
the class MsSqlSettingsExtension method handleResolve.
@Override
protected Object handleResolve(ParameterContext parameterContext, ExtensionContext extensionContext, Annotation annotation, DockerComposeRule docker) throws ParameterResolutionException {
Container container = docker.containers().container(MsSqlTestConstants.CONTAINER_NAME);
DockerPort dockerPort = container.port(MsSqlTestConstants.PORT);
return MsSqlTestConstants.settings(dockerPort.getIp(), dockerPort.getExternalPort());
}
use of com.palantir.docker.compose.connection.Container in project atlasdb by palantir.
the class MultiCassandraUtils method startCassandraContainer.
public static void startCassandraContainer(String containerName) {
Container container = EteSetup.getContainer(containerName);
try {
container.start();
} catch (IOException | InterruptedException e) {
throw Throwables.propagate(e);
}
waitForCassandraContainer(container);
}
Aggregations