Class ComposeRunner
java.lang.Object
io.quarkus.devservices.deployment.compose.ComposeRunner
A class that runs compose commands.
-
Constructor Summary
ConstructorsConstructorDescriptionComposeRunner(String composeExecutable, List<File> composeFiles, String projectName) -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()Run the compose command.withCommand(String cmd) Set the compose command and args to run.Set the environment variables to use when running the command.withProfiles(List<String> profiles) Set the profiles to use when running the command.
-
Constructor Details
-
ComposeRunner
-
-
Method Details
-
withCommand
Set the compose command and args to run.- Parameters:
cmd- the command to run- Returns:
- this
-
withEnv
Set the environment variables to use when running the command.- Parameters:
env- the environment variables- Returns:
- this
-
withProfiles
Set the profiles to use when running the command.- Parameters:
profiles- the profiles- Returns:
- this
-
run
public void run()Run the compose command.
-