Skip to content

Commit 623ea96

Browse files
authored
Update docker image version to 25.0.5 (#11219)
1 parent 9dcf4f0 commit 623ea96

16 files changed

+30
-30
lines changed

core/src/test/java/org/testcontainers/containers/ComposeContainerWithServicesTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class ComposeContainerWithServicesTest {
3131
@Test
3232
void testDesiredSubsetOfServicesAreStarted() {
3333
try (
34-
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), SIMPLE_COMPOSE_FILE)
34+
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), SIMPLE_COMPOSE_FILE)
3535
.withServices("redis")
3636
) {
3737
compose.start();
@@ -43,7 +43,7 @@ void testDesiredSubsetOfServicesAreStarted() {
4343
@Test
4444
void testDesiredSubsetOfScaledServicesAreStarted() {
4545
try (
46-
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), SIMPLE_COMPOSE_FILE)
46+
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), SIMPLE_COMPOSE_FILE)
4747
.withScaledService("redis", 2)
4848
) {
4949
compose.start();
@@ -55,7 +55,7 @@ void testDesiredSubsetOfScaledServicesAreStarted() {
5555
@Test
5656
void testDesiredSubsetOfSpecifiedAndScaledServicesAreStarted() {
5757
try (
58-
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), SIMPLE_COMPOSE_FILE)
58+
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), SIMPLE_COMPOSE_FILE)
5959
.withServices("redis")
6060
.withScaledService("redis", 2)
6161
) {
@@ -68,7 +68,7 @@ void testDesiredSubsetOfSpecifiedAndScaledServicesAreStarted() {
6868
@Test
6969
void testDesiredSubsetOfSpecifiedOrScaledServicesAreStarted() {
7070
try (
71-
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), SIMPLE_COMPOSE_FILE)
71+
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), SIMPLE_COMPOSE_FILE)
7272
.withServices("other")
7373
.withScaledService("redis", 2)
7474
) {
@@ -81,7 +81,7 @@ void testDesiredSubsetOfSpecifiedOrScaledServicesAreStarted() {
8181
@Test
8282
void testAllServicesAreStartedIfNotSpecified() {
8383
try (
84-
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), SIMPLE_COMPOSE_FILE)
84+
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), SIMPLE_COMPOSE_FILE)
8585
) {
8686
compose.start();
8787

@@ -93,7 +93,7 @@ void testAllServicesAreStartedIfNotSpecified() {
9393
void testScaleInComposeFileIsRespected() {
9494
try (
9595
ComposeContainer compose = new ComposeContainer(
96-
DockerImageName.parse("docker:24.0.2"),
96+
DockerImageName.parse("docker:25.0.5"),
9797
COMPOSE_FILE_WITH_INLINE_SCALE
9898
)
9999
) {
@@ -110,7 +110,7 @@ void testStartupTimeoutSetsTheHighestTimeout() {
110110
catchThrowable(() -> {
111111
try (
112112
ComposeContainer compose = new ComposeContainer(
113-
DockerImageName.parse("docker:24.0.2"),
113+
DockerImageName.parse("docker:25.0.5"),
114114
SIMPLE_COMPOSE_FILE
115115
)
116116
.withServices("redis")
@@ -133,7 +133,7 @@ void testStartupTimeoutSetsTheHighestTimeout() {
133133
void testWaitingForHealthcheck() {
134134
try (
135135
ComposeContainer compose = new ComposeContainer(
136-
DockerImageName.parse("docker:24.0.2"),
136+
DockerImageName.parse("docker:25.0.5"),
137137
COMPOSE_FILE_WITH_HEALTHCHECK
138138
)
139139
.waitingFor("redis", Wait.forHealthcheck().withStartupTimeout(Duration.ofMinutes(2)))
@@ -148,7 +148,7 @@ void testWaitingForHealthcheck() {
148148
void testWaitingForHealthcheckWithRestartDoesNotCrash() {
149149
try (
150150
ComposeContainer compose = new ComposeContainer(
151-
DockerImageName.parse("docker:24.0.2"),
151+
DockerImageName.parse("docker:25.0.5"),
152152
COMPOSE_FILE_WITH_HEALTHCHECK
153153
)
154154
.waitingFor("redis", Wait.forHealthcheck().withStartupTimeout(Duration.ofMinutes(1)))

core/src/test/java/org/testcontainers/junit/ComposeContainerOverrideTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ComposeContainerOverrideTest {
1919
@Test
2020
void readEnvironment() {
2121
try (
22-
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), BASE)
22+
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), BASE)
2323
.withExposedService("redis", 6379)
2424
) {
2525
compose.start();
@@ -34,7 +34,7 @@ void readEnvironment() {
3434
@Test
3535
void resetEnvironment() {
3636
try (
37-
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), BASE, OVERRIDE)
37+
ComposeContainer compose = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), BASE, OVERRIDE)
3838
.withExposedService("redis", 6379)
3939
) {
4040
compose.start();

core/src/test/java/org/testcontainers/junit/ComposeContainerPortViaEnvTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ComposeContainerPortViaEnvTest extends BaseComposeTest {
1010

1111
@AutoClose
1212
public ComposeContainer environment = new ComposeContainer(
13-
DockerImageName.parse("docker:24.0.2"),
13+
DockerImageName.parse("docker:25.0.5"),
1414
new File("src/test/resources/v2-compose-test-port-via-env.yml")
1515
)
1616
.withExposedService("redis-1", REDIS_PORT)

core/src/test/java/org/testcontainers/junit/ComposeContainerScalingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public static void checkVersion() {
2727

2828
@AutoClose
2929
public ComposeContainer environment = new ComposeContainer(
30-
DockerImageName.parse("docker:24.0.2"),
30+
DockerImageName.parse("docker:25.0.5"),
3131
new File("src/test/resources/composev2/scaled-compose-test.yml")
3232
)
3333
.withScaledService("redis", 3)

core/src/test/java/org/testcontainers/junit/ComposeContainerTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ComposeContainerTest extends BaseComposeTest {
1818

1919
// composeContainerConstructor {
2020
public ComposeContainer environment = new ComposeContainer(
21-
DockerImageName.parse("docker:24.0.2"),
21+
DockerImageName.parse("docker:25.0.5"),
2222
new File("src/test/resources/composev2/compose-test.yml")
2323
)
2424
.withExposedService("redis-1", REDIS_PORT)
@@ -88,7 +88,7 @@ void shouldCreateContainerWhenFileNotPrefixedWithPath() throws IOException {
8888
Files.write(filePathNotStartWithDotSlash.toPath(), validYaml.getBytes(StandardCharsets.UTF_8));
8989

9090
final ComposeContainer dockerComposeContainer = new ComposeContainer(
91-
DockerImageName.parse("docker:24.0.2"),
91+
DockerImageName.parse("docker:25.0.5"),
9292
filePathNotStartWithDotSlash
9393
);
9494
assertThat(dockerComposeContainer).as("Container created using docker compose file").isNotNull();

core/src/test/java/org/testcontainers/junit/ComposeContainerVolumeRemovalTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void performTest(boolean removeVolumes, boolean shouldVolumesBePresentAfterRunni
2929

3030
final AtomicReference<String> volumeName = new AtomicReference<>("");
3131
try (
32-
ComposeContainer environment = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), composeFile)
32+
ComposeContainer environment = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), composeFile)
3333
.withExposedService("redis", 6379)
3434
.withRemoveVolumes(removeVolumes)
3535
.withRemoveImages(ComposeContainer.RemoveImages.ALL)

core/src/test/java/org/testcontainers/junit/ComposeContainerWithBuildTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void performTest(
3939
final AtomicReference<String> builtImageName = new AtomicReference<>("");
4040
final AtomicReference<String> pulledImageName = new AtomicReference<>("");
4141
try (
42-
ComposeContainer environment = new ComposeContainer(DockerImageName.parse("docker:24.0.2"), composeFile)
42+
ComposeContainer environment = new ComposeContainer(DockerImageName.parse("docker:25.0.5"), composeFile)
4343
.withExposedService("customredis", 6379)
4444
.withBuild(true)
4545
.withRemoveImages(removeMode)

core/src/test/java/org/testcontainers/junit/ComposeContainerWithCopyFilesTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ComposeContainerWithCopyFilesTest {
1818
void testShouldCopyAllFilesByDefault() throws IOException {
1919
try (
2020
ComposeContainer environment = new ComposeContainer(
21-
DockerImageName.parse("docker:24.0.2"),
21+
DockerImageName.parse("docker:25.0.5"),
2222
new File("src/test/resources/compose-file-copy-inclusions/compose.yml")
2323
)
2424
.withExposedService("app", 8080)
@@ -34,7 +34,7 @@ void testShouldCopyAllFilesByDefault() throws IOException {
3434
void testWithFileCopyInclusionUsingFilePath() throws IOException {
3535
try (
3636
ComposeContainer environment = new ComposeContainer(
37-
DockerImageName.parse("docker:24.0.2"),
37+
DockerImageName.parse("docker:25.0.5"),
3838
new File("src/test/resources/compose-file-copy-inclusions/compose-root-only.yml")
3939
)
4040
.withExposedService("app", 8080)
@@ -54,7 +54,7 @@ void testWithFileCopyInclusionUsingDirectoryPath() throws IOException {
5454
try (
5555
// composeContainerWithCopyFiles {
5656
ComposeContainer environment = new ComposeContainer(
57-
DockerImageName.parse("docker:24.0.2"),
57+
DockerImageName.parse("docker:25.0.5"),
5858
new File("src/test/resources/compose-file-copy-inclusions/compose-test-only.yml")
5959
)
6060
.withExposedService("app", 8080)
@@ -73,7 +73,7 @@ void testWithFileCopyInclusionUsingDirectoryPath() throws IOException {
7373
void testShouldNotBeAbleToStartIfNeededEnvFileIsNotCopied() {
7474
try (
7575
ComposeContainer environment = new ComposeContainer(
76-
DockerImageName.parse("docker:24.0.2"),
76+
DockerImageName.parse("docker:25.0.5"),
7777
new File("src/test/resources/compose-file-copy-inclusions/compose-test-only.yml")
7878
)
7979
.withExposedService("app", 8080)

core/src/test/java/org/testcontainers/junit/ComposeContainerWithWaitStrategies.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ void testComposeContainerConstructor() {
1919
try (
2020
// composeContainerWithCombinedWaitStrategies {
2121
ComposeContainer compose = new ComposeContainer(
22-
DockerImageName.parse("docker:24.0.2"),
22+
DockerImageName.parse("docker:25.0.5"),
2323
new File("src/test/resources/composev2/compose-test.yml")
2424
)
2525
.withExposedService("redis-1", REDIS_PORT, Wait.forSuccessfulCommand("redis-cli ping"))
@@ -36,7 +36,7 @@ void testComposeContainerWaitForPortWithTimeout() {
3636
try (
3737
// composeContainerWaitForPortWithTimeout {
3838
ComposeContainer compose = new ComposeContainer(
39-
DockerImageName.parse("docker:24.0.2"),
39+
DockerImageName.parse("docker:25.0.5"),
4040
new File("src/test/resources/composev2/compose-test.yml")
4141
)
4242
.withExposedService(

core/src/test/java/org/testcontainers/junit/ComposeErrorHandlingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ void simpleTest() {
1616
assertThat(
1717
catchThrowable(() -> {
1818
ComposeContainer environment = new ComposeContainer(
19-
DockerImageName.parse("docker:24.0.2"),
19+
DockerImageName.parse("docker:25.0.5"),
2020
new File("src/test/resources/invalid-compose.yml")
2121
)
2222
.withExposedService("something", 123);

0 commit comments

Comments
 (0)