Class DevServicesConfig
java.lang.Object
org.tkit.onecx.quarkus.parameter.deployment.devservices.DevServicesConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classParameters database config -
Field Summary
FieldsModifier and TypeFieldDescriptionParameters database dev servicebooleanIf DevServices has been explicitly enabled or disabled.The container image name to use, for container based DevServices providers.The import data from file during the start.booleanEnabled or disable log of the mock-serverOptional fixed port the dev service will listen to.booleanHelper to define the stop strategy for containers created by DevServices.The value of theonecx-dev-service-parametersrlabel attached to the started container.booleanIndicates if the MockServer server managed by Quarkus Dev Services is shared. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
enabled
@ConfigItem(name="enabled", defaultValue="true") public boolean enabledIf DevServices has been explicitly enabled or disabled. DevServices is generally enabled by default, unless there is an existing configuration present.When DevServices is enabled Quarkus will attempt to automatically configure and start a database when running in Dev or Test mode and when Docker is running.
-
log
@ConfigItem(name="log", defaultValue="false") public boolean logEnabled or disable log of the mock-server -
imageName
The container image name to use, for container based DevServices providers. -
port
Optional fixed port the dev service will listen to.If not defined, the port will be chosen randomly.
-
serviceName
The value of theonecx-dev-service-parametersrlabel attached to the started container. This property is used whensharedis set totrue. In this case, before starting a container, Dev Services for Mockserver looks for a container with theonecx-dev-service-parameterslabel set to the configured value. If found, it will use this container instead of starting a new one. Otherwise, it starts a new container with theonecx-dev-service-parameterslabel set to the specified value.This property is used when you need multiple shared MockServer servers.
-
reuse
@ConfigItem(name="reuse", defaultValue="false") public boolean reuseHelper to define the stop strategy for containers created by DevServices. In particular, we don't want to actually stop the containers when they have been flagged for reuse, and when the Testcontainers configuration has been explicitly set to allow container reuse. To enable reuse, ass testcontainers.reuse.enable=true in your .testcontainers.properties file, to be stored in your home.- See Also:
-
importFile
The import data from file during the start. -
db
Parameters database dev service
-
-
Constructor Details
-
DevServicesConfig
public DevServicesConfig()
-