Class GenericContainer<SELF extends GenericContainer<SELF>>

java.lang.Object
jenax.engine.qlever.docker.GenericContainer<SELF>
All Implemented Interfaces:
org.testcontainers.containers.Container<SELF>, org.testcontainers.containers.ContainerState, org.testcontainers.containers.traits.LinkableContainer

public class GenericContainer<SELF extends GenericContainer<SELF>> extends Object implements org.testcontainers.containers.Container<SELF>
  • Constructor Details

    • GenericContainer

      public GenericContainer(String imageName)
  • Method Details

    • buildCmdLine

      public String[] buildCmdLine()
    • withCreateContainerCmdModifier

      public SELF withCreateContainerCmdModifier(Consumer<com.github.dockerjava.api.command.CreateContainerCmd> modifier)
    • getContainerName

      public String getContainerName()
      Specified by:
      getContainerName in interface org.testcontainers.containers.traits.LinkableContainer
    • getExposedPorts

      public List<Integer> getExposedPorts()
      Specified by:
      getExposedPorts in interface org.testcontainers.containers.ContainerState
    • getContainerInfo

      public com.github.dockerjava.api.command.InspectContainerResponse getContainerInfo()
      Specified by:
      getContainerInfo in interface org.testcontainers.containers.ContainerState
    • setCommand

      public void setCommand(@NonNull String command)
      Specified by:
      setCommand in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setCommand

      public void setCommand(@NonNull String... commandParts)
      Specified by:
      setCommand in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • addEnv

      public void addEnv(String key, String value)
      Specified by:
      addEnv in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • addLink

      public void addLink(org.testcontainers.containers.traits.LinkableContainer otherContainer, String alias)
      Specified by:
      addLink in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • addExposedPort

      public void addExposedPort(Integer port)
      Specified by:
      addExposedPort in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • addExposedPorts

      public void addExposedPorts(int... ports)
      Specified by:
      addExposedPorts in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • waitingFor

      public SELF waitingFor(@NonNull org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy)
      Specified by:
      waitingFor in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withFileSystemBind

      public SELF withFileSystemBind(String hostPath, String containerPath, org.testcontainers.containers.BindMode mode)
      Specified by:
      withFileSystemBind in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • addFileSystemBind

      public void addFileSystemBind(String hostPath, String containerPath, org.testcontainers.containers.BindMode mode, org.testcontainers.containers.SelinuxContext selinuxContext)
      Specified by:
      addFileSystemBind in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withVolumesFrom

      public SELF withVolumesFrom(org.testcontainers.containers.Container container, org.testcontainers.containers.BindMode mode)
      Specified by:
      withVolumesFrom in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withExposedPorts

      public SELF withExposedPorts(Integer... ports)
      Specified by:
      withExposedPorts in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withCopyFileToContainer

      public SELF withCopyFileToContainer(org.testcontainers.utility.MountableFile mountableFile, String containerPath)
      Specified by:
      withCopyFileToContainer in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withCopyToContainer

      public SELF withCopyToContainer(org.testcontainers.images.builder.Transferable transferable, String containerPath)
      Specified by:
      withCopyToContainer in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withEnv

      public SELF withEnv(String key, String value)
      Specified by:
      withEnv in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withEnv

      public SELF withEnv(Map<String,String> env)
      Specified by:
      withEnv in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withLabel

      public SELF withLabel(String key, String value)
      Specified by:
      withLabel in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withLabels

      public SELF withLabels(Map<String,String> labels)
      Specified by:
      withLabels in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withCommand

      public SELF withCommand(String cmd)
      Specified by:
      withCommand in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withCommand

      public SELF withCommand(String... commandParts)
      Specified by:
      withCommand in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withExtraHost

      public SELF withExtraHost(String hostname, String ipAddress)
      Specified by:
      withExtraHost in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withNetworkMode

      public SELF withNetworkMode(String networkMode)
      Specified by:
      withNetworkMode in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withNetwork

      public SELF withNetwork(org.testcontainers.containers.Network network)
      Specified by:
      withNetwork in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withNetworkAliases

      public SELF withNetworkAliases(String... aliases)
      Specified by:
      withNetworkAliases in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withImagePullPolicy

      public SELF withImagePullPolicy(org.testcontainers.images.ImagePullPolicy policy)
      Specified by:
      withImagePullPolicy in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withClasspathResourceMapping

      public SELF withClasspathResourceMapping(String resourcePath, String containerPath, org.testcontainers.containers.BindMode mode, org.testcontainers.containers.SelinuxContext selinuxContext)
      Specified by:
      withClasspathResourceMapping in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withStartupTimeout

      public SELF withStartupTimeout(Duration startupTimeout)
      Specified by:
      withStartupTimeout in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withPrivilegedMode

      public SELF withPrivilegedMode(boolean mode)
      Specified by:
      withPrivilegedMode in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withMinimumRunningDuration

      public SELF withMinimumRunningDuration(Duration minimumRunningDuration)
      Specified by:
      withMinimumRunningDuration in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withStartupCheckStrategy

      public SELF withStartupCheckStrategy(org.testcontainers.containers.startupcheck.StartupCheckStrategy strategy)
      Specified by:
      withStartupCheckStrategy in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withWorkingDirectory

      public SELF withWorkingDirectory(String workDir)
      Specified by:
      withWorkingDirectory in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setDockerImageName

      public void setDockerImageName(@NonNull String dockerImageName)
      Specified by:
      setDockerImageName in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getDockerImageName

      public String getDockerImageName()
      Specified by:
      getDockerImageName in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getTestHostIpAddress

      public String getTestHostIpAddress()
      Specified by:
      getTestHostIpAddress in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • withLogConsumer

      public SELF withLogConsumer(Consumer<org.testcontainers.containers.output.OutputFrame> consumer)
      Specified by:
      withLogConsumer in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getPortBindings

      public List<String> getPortBindings()
      Specified by:
      getPortBindings in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
      Specified by:
      getPortBindings in interface org.testcontainers.containers.ContainerState
    • getExtraHosts

      public List<String> getExtraHosts()
      Specified by:
      getExtraHosts in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getImage

      public Future<String> getImage()
      Specified by:
      getImage in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getEnv

      public List<String> getEnv()
      Specified by:
      getEnv in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getEnvMap

      public Map<String,String> getEnvMap()
      Specified by:
      getEnvMap in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getCommandParts

      public String[] getCommandParts()
      Specified by:
      getCommandParts in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getBinds

      public List<com.github.dockerjava.api.model.Bind> getBinds()
      Specified by:
      getBinds in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • getLinkedContainers

      public Map<String,org.testcontainers.containers.traits.LinkableContainer> getLinkedContainers()
      Specified by:
      getLinkedContainers in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setExposedPorts

      public void setExposedPorts(List<Integer> exposedPorts)
      Specified by:
      setExposedPorts in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setPortBindings

      public void setPortBindings(List<String> portBindings)
      Specified by:
      setPortBindings in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setExtraHosts

      public void setExtraHosts(List<String> extraHosts)
      Specified by:
      setExtraHosts in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setImage

      public void setImage(Future<String> image)
      Specified by:
      setImage in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setEnv

      public void setEnv(List<String> env)
      Specified by:
      setEnv in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setCommandParts

      public void setCommandParts(String[] commandParts)
      Specified by:
      setCommandParts in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setBinds

      public void setBinds(List<com.github.dockerjava.api.model.Bind> binds)
      Specified by:
      setBinds in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setLinkedContainers

      public void setLinkedContainers(Map<String,org.testcontainers.containers.traits.LinkableContainer> linkedContainers)
      Specified by:
      setLinkedContainers in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>
    • setWaitStrategy

      public void setWaitStrategy(org.testcontainers.containers.wait.strategy.WaitStrategy waitStrategy)
      Specified by:
      setWaitStrategy in interface org.testcontainers.containers.Container<SELF extends GenericContainer<SELF>>