Search in sources :

Example 1 with DockerProviderImpl

use of org.guvnor.ala.docker.model.DockerProviderImpl in project kie-wb-common by kiegroup.

the class DockerProviderConfigExecutor method apply.

@Override
public Optional<DockerProvider> apply(final DockerProviderConfig dockerProviderConfig) {
    final DockerProviderImpl provider = new DockerProviderImpl(new DockerProviderConfigImpl(dockerProviderConfig.getName(), dockerProviderConfig.getHostIp()));
    runtimeRegistry.registerProvider(provider);
    return Optional.of(provider);
}
Also used : DockerProviderImpl(org.guvnor.ala.docker.model.DockerProviderImpl) DockerProviderConfigImpl(org.guvnor.ala.docker.config.impl.DockerProviderConfigImpl)

Aggregations

DockerProviderConfigImpl (org.guvnor.ala.docker.config.impl.DockerProviderConfigImpl)1 DockerProviderImpl (org.guvnor.ala.docker.model.DockerProviderImpl)1