File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
spring-session-hazelcast/src/integration-test/java/org/springframework/session/hazelcast Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 21
21
import com .hazelcast .core .HazelcastInstance ;
22
22
import org .junit .jupiter .api .AfterAll ;
23
23
import org .junit .jupiter .api .BeforeAll ;
24
- import org .junit .jupiter .api .Disabled ;
25
24
import org .junit .jupiter .api .extension .ExtendWith ;
26
25
import org .testcontainers .containers .GenericContainer ;
26
+ import org .testcontainers .images .builder .ImageFromDockerfile ;
27
27
import org .testcontainers .utility .MountableFile ;
28
28
29
29
import org .springframework .context .annotation .Bean ;
45
45
@ ExtendWith (SpringExtension .class )
46
46
@ ContextConfiguration
47
47
@ WebAppConfiguration
48
- @ Disabled ("Re-enable when Hazelcast image uses JDK 17" )
49
48
class ClientServerHazelcastIndexedSessionRepositoryITests extends AbstractHazelcastIndexedSessionRepositoryITests {
50
49
51
- private static GenericContainer container = new GenericContainer <>("hazelcast/hazelcast:5.0.3-slim" )
50
+ // @formatter:off
51
+ private static GenericContainer container = new GenericContainer <>(new ImageFromDockerfile ()
52
+ .withDockerfileFromBuilder ((builder ) -> builder
53
+ .from ("hazelcast/hazelcast:5.3.2-slim" )
54
+ .user ("root" )
55
+ .run ("apk del --no-cache openjdk11-jre-headless" )
56
+ .run ("apk add --no-cache openjdk17-jre-headless" )
57
+ .user ("hazelcast" )))
52
58
.withExposedPorts (5701 ).withCopyFileToContainer (MountableFile .forClasspathResource ("/hazelcast-server.xml" ),
53
59
"/opt/hazelcast/hazelcast.xml" )
54
60
.withEnv ("HAZELCAST_CONFIG" , "hazelcast.xml" );
61
+ // @formatter:on
55
62
56
63
@ BeforeAll
57
64
static void setUpClass () {
You can’t perform that action at this time.
0 commit comments