Class ComposeProject

java.lang.Object
io.quarkus.devservices.deployment.compose.ComposeProject

public class ComposeProject extends Object
A wrapper around compose that starts and stops services defined a set of compose files.
  • Field Details

  • Constructor Details

  • Method Details

    • addWaitStrategy

      public void addWaitStrategy(Map<String,org.testcontainers.containers.wait.strategy.WaitAllStrategy> strategies, String instanceName, org.testcontainers.containers.wait.strategy.WaitStrategy strategy)
      can have multiple wait strategies for a single container, e.g. if waiting on several ports if no wait strategy is defined, the WaitAllStrategy will return immediately. The WaitAllStrategy uses the startup timeout for everything as a global maximum, but we expect timeouts to be handled by the inner strategies.
    • getProject

      public String getProject()
      Returns:
      the project name
    • getWaitStrategies

      Map<String,org.testcontainers.containers.wait.strategy.WaitAllStrategy> getWaitStrategies()
    • start

      public void start()
    • waitUntilServicesReady

      public void waitUntilServicesReady(Executor waitOn)
    • startAndWaitUntilServicesReady

      public void startAndWaitUntilServicesReady(Executor waitOn)
    • discoverServiceInstances

      public void discoverServiceInstances(boolean checkForRequiredServices)
    • stop

      public void stop()
      Stops the services defined in the docker-compose file.
    • runWithCompose

      public void runWithCompose(String cmd, Map<String,String> env)
    • getServices

      public List<ComposeServiceWaitStrategyTarget> getServices()
    • getEnvVarConfig

      public Map<String,String> getEnvVarConfig()
    • getExposedPortConfig

      public Map<String,String> getExposedPortConfig()
    • getNetworks

      public List<com.github.dockerjava.api.model.Network> getNetworks()
    • getDefaultNetworkId

      public String getDefaultNetworkId()