Search in sources :

Example 1 with Container

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());
}
Also used : Container(com.palantir.docker.compose.connection.Container) DockerPort(com.palantir.docker.compose.connection.DockerPort)

Example 2 with Container

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);
}
Also used : Container(com.palantir.docker.compose.connection.Container) IOException(java.io.IOException)

Aggregations

Container (com.palantir.docker.compose.connection.Container)2 DockerPort (com.palantir.docker.compose.connection.DockerPort)1 IOException (java.io.IOException)1