Class ComposeRunner

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

public class ComposeRunner extends Object
A class that runs compose commands.
  • Constructor Details

    • ComposeRunner

      public ComposeRunner(String composeExecutable, List<File> composeFiles, String projectName)
  • Method Details

    • withCommand

      public ComposeRunner withCommand(String cmd)
      Set the compose command and args to run.
      Parameters:
      cmd - the command to run
      Returns:
      this
    • withEnv

      public ComposeRunner withEnv(Map<String,String> env)
      Set the environment variables to use when running the command.
      Parameters:
      env - the environment variables
      Returns:
      this
    • withProfiles

      public ComposeRunner withProfiles(List<String> profiles)
      Set the profiles to use when running the command.
      Parameters:
      profiles - the profiles
      Returns:
      this
    • run

      public void run()
      Run the compose command.