Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ jobs:
services:
# Label used to access the service container
mysql:
# Docker Hub image
image: mysql:9.2.0
image: container-registry.oracle.com/mysql/community-server:9.3.0
env:
MYSQL_ROOT_PASSWORD: hreact
MYSQL_DATABASE: hreact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class MySQLDatabase implements TestableDatabase {
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
*/
public static final MySQLContainer<?> mysql = new MySQLContainer<>( fromDockerfile( "mysql" ) )
public static final MySQLContainer<?> mysql = new MySQLContainer<>( fromDockerfile( "mysql" ).asCompatibleSubstituteFor( "mysql" ) )
.withUsername( DatabaseConfiguration.USERNAME )
.withPassword( DatabaseConfiguration.PASSWORD )
.withDatabaseName( DatabaseConfiguration.DB_NAME )
Expand Down
2 changes: 1 addition & 1 deletion tooling/docker/mysql.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# MySQL
# See https://hub.docker.com/_/mysql
FROM docker.io/mysql:9.2.0
FROM container-registry.oracle.com/mysql/community-server:9.3.0
2 changes: 1 addition & 1 deletion tooling/jbang/MySQLReactiveTest.java.qute
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class {baseName} {
}

@ClassRule
public final static MySQLContainer<?> database = new MySQLContainer<>( imageName( "docker.io", "mysql", "9.2.0" ) );
public final static MySQLContainer<?> database = new MySQLContainer<>( imageName( "container-registry.oracle.com", "mysql/community-server", "9.3.0" ).asCompatibleSubstituteFor( "mysql" ) );

private Mutiny.SessionFactory sessionFactory;

Expand Down
2 changes: 1 addition & 1 deletion tooling/jbang/ReactiveTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public String toString() {
*/
enum Database {
POSTGRESQL( () -> new PostgreSQLContainer( "postgres:17.5" ) ),
MYSQL( () -> new MySQLContainer( "mysql:9.2.0" ) ),
MYSQL( () -> new MySQLContainer( "container-registry.oracle.com/mysql/community-server:9.3.0" ) ),
DB2( () -> new Db2Container( "docker.io/icr.io/db2_community/db2:12.1.0.0" ).acceptLicense() ),
MARIADB( () -> new MariaDBContainer( "mariadb:11.7.2" ) ),
COCKROACHDB( () -> new CockroachContainer( "cockroachdb/cockroach:v24.3.13" ) );
Expand Down
Loading