Skip to content

Commit dedb07e

Browse files
authored
Merge branch 'main' into fix/mariadb-liveness-port-10359
2 parents ce0f611 + 7fe356e commit dedb07e

File tree

4 files changed

+16
-10
lines changed

4 files changed

+16
-10
lines changed

core/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ task jarFileTest(type: Test) {
3434
testClassesDirs = sourceSets.jarFileTest.output.classesDirs
3535
classpath = sourceSets.jarFileTest.runtimeClasspath
3636

37-
file(shadowJar.outputs.files.singleFile) // input for correct caching
38-
systemProperty("jarFile", shadowJar.outputs.files.singleFile)
37+
inputs.files(shadowJar).withPathSensitivity(PathSensitivity.RELATIVE)
38+
systemProperty("jarFile", project.projectDir.toPath().relativize(shadowJar.outputs.files.singleFile.toPath()).toString())
3939

4040
dependsOn(shadowJar)
4141
}

docs/modules/docker_compose.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ accessible via the static factory methods from of the `Wait` class.
7272

7373
For instance, we can wait for exposed port and set a custom timeout:
7474
<!--codeinclude-->
75-
[Wait for the exposed port and use a custom timeout](../../core/src/test/java/org/testcontainers/junit/ComposeContainerWithWaitStrategies.java) inside_block:composeContainerWaitForPortWithTimeout
75+
[Wait for the exposed port and use a custom timeout](../../core/src/test/java/org/testcontainers/junit/ComposeContainerWithWaitStrategiesTest.java) inside_block:composeContainerWaitForPortWithTimeout
7676
<!--/codeinclude-->
7777

7878
Needless to say, we can define different strategies for each service in our Docker Compose setup.
@@ -81,7 +81,7 @@ For example, our Redis container can wait for a successful redis-cli command,
8181
while our db service waits for a specific log message:
8282

8383
<!--codeinclude-->
84-
[Wait for a custom command and a log message](../../core/src/test/java/org/testcontainers/junit/ComposeContainerWithWaitStrategies.java) inside_block:composeContainerWithCombinedWaitStrategies
84+
[Wait for a custom command and a log message](../../core/src/test/java/org/testcontainers/junit/ComposeContainerWithWaitStrategiesTest.java) inside_block:composeContainerWithCombinedWaitStrategies
8585
<!--/codeinclude-->
8686

8787

docs/modules/localstack.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,21 @@ You can start a LocalStack container instance from any Java application by using
1010
[Container creation](../../modules/localstack/src/test/java/org/testcontainers/localstack/LocalStackContainerTest.java) inside_block:container
1111
<!--/codeinclude-->
1212

13+
Environment variables listed in the [LocalStack configuration documentation](https://docs.localstack.cloud/references/configuration/) may be used to customize LocalStack's configuration.
14+
Use the `.withEnv(key, value)` method on `LocalStackContainer` to apply configuration settings.
15+
16+
!!! note
17+
Starting March 23, 2026, `localstack/localstack` requires authentication via a `LOCALSTACK_AUTH_TOKEN` environment variable. Without it, the container will fail to start.
18+
19+
Use `.withEnv("LOCALSTACK_AUTH_TOKEN", System.getenv("LOCALSTACK_AUTH_TOKEN"))` to pass the token.
20+
See the [LocalStack blog post](https://blog.localstack.cloud/localstack-single-image-next-steps/) for more details.
21+
1322
## Creating a client using AWS SDK
1423

1524
<!--codeinclude-->
1625
[AWS SDK V2](../../modules/localstack/src/test/java/org/testcontainers/localstack/LocalStackContainerTest.java) inside_block:with_aws_sdk_v2
1726
<!--/codeinclude-->
1827

19-
Environment variables listed in [Localstack's README](https://github.com/localstack/localstack#configurations) may be used to customize Localstack's configuration.
20-
Use the `.withEnv(key, value)` method on `LocalStackContainer` to apply configuration settings.
21-
2228
## Adding this module to your project dependencies
2329

2430
Add the following dependency to your `pom.xml`/`build.gradle` file:

modules/localstack/src/main/java/org/testcontainers/localstack/LocalStackContainer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public URI getEndpoint() {
168168
* The access key can be used to construct AWS SDK v2 clients:
169169
* <pre><code>S3Client s3 = S3Client
170170
.builder()
171-
.endpointOverride(localstack.getEndpointOverride(LocalStackContainer.Service.S3))
171+
.endpointOverride(localstack.getEndpoint())
172172
.credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create(
173173
localstack.getAccessKey(), localstack.getSecretKey()
174174
)))
@@ -187,7 +187,7 @@ public String getAccessKey() {
187187
* The secret key can be used to construct AWS SDK v2 clients:
188188
* <pre><code>S3Client s3 = S3Client
189189
.builder()
190-
.endpointOverride(localstack.getEndpointOverride(LocalStackContainer.Service.S3))
190+
.endpointOverride(localstack.getEndpoint())
191191
.credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create(
192192
localstack.getAccessKey(), localstack.getSecretKey()
193193
)))
@@ -205,7 +205,7 @@ public String getSecretKey() {
205205
* The region can be used to construct AWS SDK v2 clients:
206206
* <pre><code>S3Client s3 = S3Client
207207
.builder()
208-
.endpointOverride(localstack.getEndpointOverride(LocalStackContainer.Service.S3))
208+
.endpointOverride(localstack.getEndpoint())
209209
.credentialsProvider(StaticCredentialsProvider.create(AwsBasicCredentials.create(
210210
localstack.getAccessKey(), localstack.getSecretKey()
211211
)))

0 commit comments

Comments
 (0)