Package io.quarkus.deployment.builditem
Class DevServicesComposeProjectBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.SimpleBuildItem
io.quarkus.deployment.builditem.DevServicesComposeProjectBuildItem
public final class DevServicesComposeProjectBuildItem
extends io.quarkus.builder.item.SimpleBuildItem
BuildItem for running services provided by compose
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDevServicesComposeProjectBuildItem(String project, String defaultNetworkId, Map<String, List<RunningContainer>> composeServices, Map<String, String> config) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisContainerIgnored(ContainerInfo containerInfo) Ignored services are not returned by locateLocate a running container by image partial The container image partial can be a substring of the full image name Ignored services are not returnedLocate a running container by image partial and port The container image partial can be a substring of the full image namelocateFirst(List<String> imagePartials) Locate the first running container by image partial The container image partial can be a substring of the full image name Ignored services are not returned
-
Field Details
-
COMPOSE_IGNORE
- See Also:
-
-
Constructor Details
-
DevServicesComposeProjectBuildItem
public DevServicesComposeProjectBuildItem() -
DevServicesComposeProjectBuildItem
-
-
Method Details
-
getProject
-
getDefaultNetworkId
-
getConfig
-
getComposeServices
-
locate
Locate a running container by image partial and port The container image partial can be a substring of the full image name- Parameters:
imagePartials- image partialsport- exposed port- Returns:
- the running container or null if not found
-
locate
Locate a running container by image partial The container image partial can be a substring of the full image name Ignored services are not returned- Parameters:
imagePartials- image partials- Returns:
- the list of running containers
-
locateFirst
Locate the first running container by image partial The container image partial can be a substring of the full image name Ignored services are not returned- Parameters:
imagePartials- image partials- Returns:
- the first running container
-
isContainerIgnored
Ignored services are not returned by locate- Parameters:
containerInfo- container info- Returns:
- true if the container should be ignored
-