Class EcrConfig.Builder
java.lang.Object
io.floci.testcontainers.config.services.AbstractServiceConfigBuilder<EcrConfig.Builder,EcrConfig>
io.floci.testcontainers.config.services.EcrConfig.Builder
- Enclosing class:
- EcrConfig
public static class EcrConfig.Builder
extends AbstractServiceConfigBuilder<EcrConfig.Builder,EcrConfig>
Builder for
EcrConfig.-
Field Summary
Fields inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled -
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates an immutableEcrConfigfrom this builder.dockerNetwork(String dockerNetwork) Sets the Docker network that ECR registry containers should join.registryContainerName(String registryContainerName) Sets the container name for the ECR registry.registryImage(String registryImage) Sets the Docker image for the ECR registry.registryPortRange(int basePort, int amount) Sets the port range for the ECR registry.tlsEnabled(boolean tlsEnabled) Sets whether TLS is enabled for the ECR registry.Sets the URI style for repositoryUri responses.Methods inherited from class io.floci.testcontainers.config.services.AbstractServiceConfigBuilder
enabled
-
Method Details
-
registryImage
Sets the Docker image for the ECR registry.- Parameters:
registryImage- the image name (default "registry:2")- Returns:
- this builder
-
registryContainerName
Sets the container name for the ECR registry.- Parameters:
registryContainerName- the container name (default "floci-ecr-registry")- Returns:
- this builder
-
registryPortRange
Sets the port range for the ECR registry.- Parameters:
basePort- the base port (default 5100)amount- the amount of ports (default 10)- Returns:
- this builder
-
tlsEnabled
Sets whether TLS is enabled for the ECR registry.- Parameters:
tlsEnabled-trueto enable TLS (default false)- Returns:
- this builder
-
uriStyle
Sets the URI style for repositoryUri responses.- Parameters:
uriStyle-"hostname"or"path"(default "hostname")- Returns:
- this builder
-
dockerNetwork
Sets the Docker network that ECR registry containers should join.- Parameters:
dockerNetwork- the network name, ornullto use the default bridge- Returns:
- this builder
-
build
Creates an immutableEcrConfigfrom this builder.- Specified by:
buildin classAbstractServiceConfigBuilder<EcrConfig.Builder,EcrConfig> - Returns:
- the ECR configuration
-