From 92b39abce34812860ffde56d1a94251936059a2f Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 11:53:08 +0000 Subject: [PATCH 1/2] Pin removed atmoz/sftp:alpine-3.7 example image to alpine digest Docker Hub no longer serves atmoz/sftp:alpine-3.7 (only alpine, debian and latest remain), so the sftp example tests fail with a 404 on pull. Pin the current alpine tag by digest to keep the example reproducible. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015e4ZbVeaqHdbxXHBUWarxn --- .../sftp/src/test/java/org/example/SftpContainerTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/sftp/src/test/java/org/example/SftpContainerTest.java b/examples/sftp/src/test/java/org/example/SftpContainerTest.java index 3a6593ea736..0e6c4c9d679 100644 --- a/examples/sftp/src/test/java/org/example/SftpContainerTest.java +++ b/examples/sftp/src/test/java/org/example/SftpContainerTest.java @@ -21,7 +21,7 @@ class SftpContainerTest { @Test void test() throws Exception { try ( - GenericContainer sftp = new GenericContainer<>("atmoz/sftp:alpine-3.7") + GenericContainer sftp = new GenericContainer<>("atmoz/sftp:alpine@sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372") .withCopyFileToContainer( MountableFile.forClasspathResource("testcontainers/", 0777), "/home/foo/upload/testcontainers" @@ -55,7 +55,7 @@ void test() throws Exception { @Test void testHostKeyCheck() throws Exception { try ( - GenericContainer sftp = new GenericContainer<>("atmoz/sftp:alpine-3.7") + GenericContainer sftp = new GenericContainer<>("atmoz/sftp:alpine@sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372") .withCopyFileToContainer( MountableFile.forClasspathResource("testcontainers/", 0777), "/home/foo/upload/testcontainers" From 656a2bf78f337526398e034890c9c25298941027 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 14 Nov 2026 15:59:45 +0000 Subject: [PATCH 2/2] Apply spotless formatting to sftp example Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_015e4ZbVeaqHdbxXHBUWarxn --- .../sftp/src/test/java/org/example/SftpContainerTest.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/sftp/src/test/java/org/example/SftpContainerTest.java b/examples/sftp/src/test/java/org/example/SftpContainerTest.java index 0e6c4c9d679..4b129046d31 100644 --- a/examples/sftp/src/test/java/org/example/SftpContainerTest.java +++ b/examples/sftp/src/test/java/org/example/SftpContainerTest.java @@ -21,7 +21,9 @@ class SftpContainerTest { @Test void test() throws Exception { try ( - GenericContainer sftp = new GenericContainer<>("atmoz/sftp:alpine@sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372") + GenericContainer sftp = new GenericContainer<>( + "atmoz/sftp:alpine@sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372" + ) .withCopyFileToContainer( MountableFile.forClasspathResource("testcontainers/", 0777), "/home/foo/upload/testcontainers" @@ -55,7 +57,9 @@ void test() throws Exception { @Test void testHostKeyCheck() throws Exception { try ( - GenericContainer sftp = new GenericContainer<>("atmoz/sftp:alpine@sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372") + GenericContainer sftp = new GenericContainer<>( + "atmoz/sftp:alpine@sha256:c5fb9e4beb8b7054a4c0b65c5e11df47cc20da95ad6002e88aecff62bab06372" + ) .withCopyFileToContainer( MountableFile.forClasspathResource("testcontainers/", 0777), "/home/foo/upload/testcontainers"