File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/test/java/org/apache/ibatis/testcontainers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 22
22
import org .testcontainers .containers .MySQLContainer ;
23
23
import org .testcontainers .junit .jupiter .Container ;
24
24
import org .testcontainers .junit .jupiter .Testcontainers ;
25
+ import org .testcontainers .utility .DockerImageName ;
25
26
26
27
@ Testcontainers
27
28
public final class MysqlContainer {
@@ -36,8 +37,8 @@ public final class MysqlContainer {
36
37
37
38
private static MySQLContainer <?> initContainer () {
38
39
@ SuppressWarnings ("resource" )
39
- MySQLContainer <?> container = new MySQLContainer <>("mysql" ).withDatabaseName ( DB_NAME ). withUsername ( USERNAME )
40
- .withPassword (PASSWORD ).withUrlParam ("useSSL" , "false" );
40
+ MySQLContainer <?> container = new MySQLContainer <>(DockerImageName . parse ( "mysql" ).withTag ( "9.2" ) )
41
+ .withDatabaseName ( DB_NAME ). withUsername ( USERNAME ). withPassword (PASSWORD ).withUrlParam ("useSSL" , "false" );
41
42
container .start ();
42
43
return container ;
43
44
}
You can’t perform that action at this time.
0 commit comments