Class DockerManager

java.lang.Object
dev.lydtech.component.framework.management.DockerManager

public final class DockerManager extends Object
  • Constructor Details

    • DockerManager

      public DockerManager()
  • Method Details

    • getDockerClient

      public static com.github.dockerjava.api.DockerClient getDockerClient()
    • shouldPerformSetup

      public static boolean shouldPerformSetup(com.github.dockerjava.api.DockerClient dockerClient)
      Skip Testcontainers setup if: - Main container is running (it has the expected prefix and label) AND - Testcontainers container is not running. If the system parameter container.append.group.id is true, then Testcontainers set up is always performed, as that property is used to enable a group of containers to be run concurrently for multiple component test runs (and the group of container names include a unique id to identify the group).
    • captureDockerContainerPorts

      public static void captureDockerContainerPorts(com.github.dockerjava.api.DockerClient dockerClient)