Annotation Type LocalstackDockerProperties
-
@Retention(RUNTIME) @Target(TYPE) @Inherited public @interface LocalstackDockerPropertiesAn annotation to provide parameters to the main (Docker-based) LocalstackTestRunner
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.Class<? extends IBindMountProvider>bindMountProviderUsed for injecting directories or files that are bind mounted into the docker container.java.lang.Class<? extends IEnvironmentVariableProvider>environmentVariableProviderUsed for injecting environment variables into the container.java.lang.Class<? extends IHostNameResolver>hostNameResolverUsed for determining the host name of the machine running the docker containers so that the containers can be addressed.booleanignoreDockerRunErrorsDetermines if errors should be ignored when starting the Docker container.java.lang.StringimageNameUse a specific image name (consisting of organisation and repository, e.g.java.lang.StringimageTagUse a specific image tag for docker containerjava.lang.StringinitializationTokenA Java Regex that is used to wait for the execution of custom init scriptsjava.lang.StringplatformSpecifies a target platform for the localstack docker image.java.lang.StringportEdgePort number for the edge service, the main entry point for all API invocations.java.lang.StringportElasticSearchPort number for the elasticsearch service.booleanpullNewImageDetermines if a new image is pulled from the docker repo before the tests are run.booleanrandomizePortsDeprecated.java.lang.String[]servicesDetermines which services should be run when the localstack starts.booleanuseSingleDockerContainerDetermines if the singleton container should be used by all test classes
-
-
-
Element Detail
-
hostNameResolver
java.lang.Class<? extends IHostNameResolver> hostNameResolver
Used for determining the host name of the machine running the docker containers so that the containers can be addressed.- Default:
- cloud.localstack.docker.annotation.LocalHostNameResolver.class
-
-
-
environmentVariableProvider
java.lang.Class<? extends IEnvironmentVariableProvider> environmentVariableProvider
Used for injecting environment variables into the container. Implement a class that provides a map of the environment variables and they will be injected into the container on start-up- Default:
- cloud.localstack.docker.annotation.DefaultEnvironmentVariableProvider.class
-
-
-
bindMountProvider
java.lang.Class<? extends IBindMountProvider> bindMountProvider
Used for injecting directories or files that are bind mounted into the docker container. Implement a class that provides a map of host to container directory or file mappings, with host directories/files as keys and container directories/files as values. Remember that Docker needs absolute paths for host directories and files.- Default:
- cloud.localstack.docker.annotation.IBindMountProvider.EmptyBindMountProvider.class
-
-
-
randomizePorts
@Deprecated boolean randomizePorts
Deprecated.Determines if the container should expose the default local stack ports (4567-4583) or if it should expose randomized ports in order to prevent conflicts with other localstack containers running on the same machine. Deprecated, since latest LocalStack is using a single entry point (edge service)- Default:
- false
-
-
-
services
java.lang.String[] services
Determines which services should be run when the localstack starts. When empty, all the services available get up and running.- See Also:
ServiceName
- Default:
- {}
-
-