@@ -20,6 +20,8 @@ class MySQLClusterTcExtension implements Extension {
2020
2121 private static final String CLUSTERJ_DATABASE = "NDB_DB" ;
2222
23+ private static final String IMAGE_NAME = "mysql/mysql-cluster:8.0.23" ;
24+
2325 private static Network .Ipam getIpam () {
2426 Network .Ipam ipam = new Network .Ipam ();
2527 ipam .withDriver ("default" );
@@ -33,7 +35,7 @@ private static Network.Ipam getIpam() {
3335 .createNetworkCmdModifier (createNetworkCmd -> createNetworkCmd .withIpam (getIpam ()))
3436 .build ();
3537
36- private static GenericContainer ndbMgmd = new GenericContainer <>("mysql/mysql-cluster:7.6.16" )
38+ private static GenericContainer ndbMgmd = new GenericContainer <>(IMAGE_NAME )
3739 .withNetwork (network )
3840 .withClasspathResourceMapping ("mysql-cluster.cnf" ,
3941 "/etc/mysql-cluster.cnf" ,
@@ -46,7 +48,7 @@ private static Network.Ipam getIpam() {
4648 .withExposedPorts (1186 )
4749 .waitingFor (Wait .forListeningPort ().withStartupTimeout (Duration .ofSeconds (150 )));
4850
49- private static GenericContainer ndbd1 = new GenericContainer <>("mysql/mysql-cluster" )
51+ private static GenericContainer ndbd1 = new GenericContainer <>(IMAGE_NAME )
5052 .withNetwork (network )
5153 .withClasspathResourceMapping ("mysql-cluster.cnf" ,
5254 "/etc/mysql-cluster.cnf" ,
@@ -57,7 +59,7 @@ private static Network.Ipam getIpam() {
5759 .withCreateContainerCmdModifier (createContainerCmd -> createContainerCmd .withIpv4Address ("192.168.0.3" ))
5860 .withCommand ("ndbd" );
5961
60- private static GenericContainer ndbMysqld = new GenericContainer <>("mysql/mysql-cluster" )
62+ private static GenericContainer ndbMysqld = new GenericContainer <>(IMAGE_NAME )
6163 .withNetwork (network )
6264 .withCommand ("mysqld" )
6365 .withCreateContainerCmdModifier (createContainerCmd -> createContainerCmd .withIpv4Address ("192.168.0.10" ))
0 commit comments