Skip to content

Commit 1489d7a

Browse files
dependabot[bot]DavideD
authored andcommitted
[#2270] Change docker image to container-registry.oracle.com/mysql/community-server:9.3.0
from `docker.io/mysql:9.2.0` to `container-registry.oracle.com/mysql/community-server:9.3.0` I found the registry in the official MySQL documentation: https://dev.mysql.com/doc/refman/9.3/en/docker-mysql-getting-started.html#docker-download-image The one from docker.io doesn't seem to work with testcontainers.
1 parent 0e97b9b commit 1489d7a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@ jobs:
4949
services:
5050
# Label used to access the service container
5151
mysql:
52-
# Docker Hub image
53-
image: mysql:9.2.0
52+
image: container-registry.oracle.com/mysql/community-server:9.3.0
5453
env:
5554
MYSQL_ROOT_PASSWORD: hreact
5655
MYSQL_DATABASE: hreact

hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers/MySQLDatabase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ class MySQLDatabase implements TestableDatabase {
8787
* TIP: To reuse the same containers across multiple runs, set `testcontainers.reuse.enable=true` in a file located
8888
* at `$HOME/.testcontainers.properties` (create the file if it does not exist).
8989
*/
90-
public static final MySQLContainer<?> mysql = new MySQLContainer<>( fromDockerfile( "mysql" ) )
90+
public static final MySQLContainer<?> mysql = new MySQLContainer<>( fromDockerfile( "mysql" ).asCompatibleSubstituteFor( "mysql" ) )
9191
.withUsername( DatabaseConfiguration.USERNAME )
9292
.withPassword( DatabaseConfiguration.PASSWORD )
9393
.withDatabaseName( DatabaseConfiguration.DB_NAME )

tooling/docker/mysql.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# MySQL
22
# See https://hub.docker.com/_/mysql
3-
FROM docker.io/mysql:9.2.0
3+
FROM container-registry.oracle.com/mysql/community-server:9.3.0

0 commit comments

Comments
 (0)