Class ComposeProject.Builder
java.lang.Object
io.quarkus.devservices.deployment.compose.ComposeProject.Builder
- Enclosing class:
ComposeProject
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Set whether to build the images before starting the compose project.withDockerClient(com.github.dockerjava.api.DockerClient dockerClient) Set the docker client to use for the compose project.Set environment variables to pass to the compose command.withFollowContainerLogs(boolean followContainerLogs) Set whether to follow the container logs.withOptions(List<String> options) Set the options to pass to the compose command.withProfiles(List<String> profiles) Set the profiles for the compose project.withProject(String project) Set the project name for the compose project.withRemoveImages(String removeImages) Remove images after containers shutdown.withRemoveVolumes(boolean removeVolumes) Remove volumes after containers shut down.withRyukEnabled(boolean ryukEnabled) Set whether to stop containers when the project is stopped.withScalingPreferences(Map<String, Integer> scalingPreferences) Set the scaling preferences for the compose project.withStartupTimeout(Duration duration) Set the startup timeout for the compose project.withStopContainers(boolean stopContainers) Set whether to stop containers when the project is stopped.withStopTimeout(Duration duration) Set the stop timeout for the compose project.
-
Constructor Details
-
Builder
-
-
Method Details
-
withDockerClient
Set the docker client to use for the compose project.- Parameters:
dockerClient- the docker client to use- Returns:
- this
-
withStopContainers
Set whether to stop containers when the project is stopped.- Parameters:
stopContainers- whether to stop containers when the project is stopped- Returns:
- this
-
withRyukEnabled
Set whether to stop containers when the project is stopped.- Parameters:
ryukEnabled- whether to stop containers when the project is stopped- Returns:
- this
-
withStartupTimeout
Set the startup timeout for the compose project.- Parameters:
duration- the startup timeout- Returns:
- this
-
withStopTimeout
Set the stop timeout for the compose project.- Parameters:
duration- the startup timeout- Returns:
- this
-
withBuild
Set whether to build the images before starting the compose project.- Parameters:
build- whether to build the images before starting the compose project- Returns:
- this
-
withEnv
Set environment variables to pass to the compose command.- Parameters:
envVariables- the environment variables to pass to the compose command- Returns:
- this
-
withOptions
Set the options to pass to the compose command.- Parameters:
options- the options to pass to the compose command- Returns:
- this
-
withProfiles
Set the profiles for the compose project.- Parameters:
profiles- the profiles for the compose project- Returns:
- this
-
withScalingPreferences
Set the scaling preferences for the compose project.- Parameters:
scalingPreferences- the scaling preferences for the compose project- Returns:
- this
-
withFollowContainerLogs
Set whether to follow the container logs.- Parameters:
followContainerLogs- whether to follow the container logs- Returns:
- this
-
withRemoveImages
Remove images after containers shutdown.- Returns:
- this instance, for chaining
-
withRemoveVolumes
Remove volumes after containers shut down.- Parameters:
removeVolumes- whether volumes are to be removed.- Returns:
- this instance, for chaining.
-
withProject
Set the project name for the compose project.- Parameters:
project- the project name for the compose project- Returns:
- this
-
build
-