Search in sources :

Example 1 with DockerAccessFactory

use of org.eclipse.jkube.kit.build.service.docker.DockerAccessFactory in project jkube by eclipse.

the class TaskUtil method initDockerAccess.

public static DockerAccess initDockerAccess(KubernetesExtension kubernetesExtension, KitLogger kitLogger) {
    if (!kubernetesExtension.isDockerAccessRequired()) {
        return null;
    }
    final DockerAccessFactory.DockerAccessContext dockerAccessContext = DockerAccessFactory.DockerAccessContext.builder().log(kitLogger).projectProperties(kubernetesExtension.javaProject.getProperties()).maxConnections(kubernetesExtension.getMaxConnectionsOrDefault()).dockerHost(kubernetesExtension.getDockerHostOrNull()).certPath(kubernetesExtension.getCertPathOrNull()).machine(kubernetesExtension.machine).minimalApiVersion(kubernetesExtension.getMinimalApiVersion().getOrNull()).skipMachine(kubernetesExtension.getSkipMachineOrDefault()).build();
    DockerAccessFactory dockerAccessFactory = new DockerAccessFactory();
    return dockerAccessFactory.createDockerAccess(dockerAccessContext);
}
Also used : DockerAccessFactory(org.eclipse.jkube.kit.build.service.docker.DockerAccessFactory)

Aggregations

DockerAccessFactory (org.eclipse.jkube.kit.build.service.docker.DockerAccessFactory)1