Class ContainerExtension
java.lang.Object
io.github.suppierk.codegen.extensions.ContainerExtension
Describes optional container overrides for a database. Currently, supports overriding the Docker
image used when launching Testcontainers for a specific database entry.
-
Constructor Summary
ConstructorsConstructorDescriptionContainerExtension(org.gradle.api.model.ObjectFactory image) Default constructor. -
Method Summary
-
Constructor Details
-
ContainerExtension
public ContainerExtension(@Nonnull org.gradle.api.model.ObjectFactory image) Default constructor.- Parameters:
image- property containing an optional image override
-
-
Method Details
-
image
Returns the configured image override property.- Returns:
- property containing an optional image override
-
setImage
Sets explicit Docker image to use for this database.- Parameters:
value- Docker image name (e.g.postgres:17-alpine)
-
image
Groovy-friendly alias forsetImage(String).- Parameters:
value- Docker image name (e.g.postgres:17-alpine)
-