Use specific tag for Localstack Docker image

* Use `withReuse(true)` for better performance with Testcontainers
This commit is contained in:
Artem Bilan
2022-05-17 14:37:34 -04:00
parent dfc25dd01d
commit 18aaaecea3

View File

@@ -42,11 +42,12 @@ public interface LocalstackContainerTest {
@Container
LocalStackContainer localStack =
new LocalStackContainer(DockerImageName.parse(TestUtils.dockerRegistryFromEnv() + "localstack/localstack"))
new LocalStackContainer(DockerImageName.parse(TestUtils.dockerRegistryFromEnv() + "localstack/localstack:0.14.2"))
.withServices(
LocalStackContainer.Service.DYNAMODB,
LocalStackContainer.Service.KINESIS,
LocalStackContainer.Service.CLOUDWATCH);
LocalStackContainer.Service.CLOUDWATCH)
.withReuse(true);
static AmazonDynamoDBAsync dynamoDbClient() {