Skip to content

Commit

Permalink
Change docker image to the official one from oracle repository (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnestoro authored Jul 25, 2023
1 parent 454defe commit bb9d7ea
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mysql/mysql-server:8.0
container-registry.oracle.com/mysql/community-server:8.1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static void beforeAll() throws IOException {
System.out.println("Starting MySQL ...");
process = new ProcessBuilder(
"docker", "run", "--rm", "-p", "3306:3306", "-e", "MYSQL_DATABASE=" + DATABASE, "-e", "MYSQL_USER=" + USERNAME,
"-e", "MYSQL_PASSWORD=" + PASSWORD, "mysql/mysql-server:8.0").redirectOutput(new File("mysql-stdout.txt"))
"-e", "MYSQL_PASSWORD=" + PASSWORD, "container-registry.oracle.com/mysql/community-server:8.1").redirectOutput(new File("mysql-stdout.txt"))
.redirectError(new File("mysql-stderr.txt")).start();

// Wait until connection can be established
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mysql/mysql-server:8.0
container-registry.oracle.com/mysql/community-server:8.1
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static void beforeAll() throws IOException {
System.out.println("Starting MySQL ...");
process = new ProcessBuilder(
"docker", "run", "--rm", "-p", "3306:3306", "-e", "MYSQL_DATABASE=" + DATABASE, "-e", "MYSQL_USER=" + USERNAME,
"-e", "MYSQL_PASSWORD=" + PASSWORD, "mysql/mysql-server:8.0").redirectOutput(new File("mysql-stdout.txt"))
"-e", "MYSQL_PASSWORD=" + PASSWORD, "container-registry.oracle.com/mysql/community-server:8.1").redirectOutput(new File("mysql-stdout.txt"))
.redirectError(new File("mysql-stderr.txt")).start();

// Wait until connection can be established
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mysql/mysql-server:8.0
container-registry.oracle.com/mysql/community-server:8.1
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void init() throws IOException {
logger.info("Starting MySQL ...");
process = new ProcessBuilder(
"docker", "run", "--rm", "-p", "3306:3306", "-e", "MYSQL_DATABASE=" + DATABASE, "-e", "MYSQL_USER=" + USERNAME,
"-e", "MYSQL_PASSWORD=" + PASSWORD, "mysql/mysql-server:8.0").inheritIO().start();
"-e", "MYSQL_PASSWORD=" + PASSWORD, "container-registry.oracle.com/mysql/community-server:8.1").inheritIO().start();

waitUntil(() -> {
openConnection().close();
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mysql/mysql-server:8.0
container-registry.oracle.com/mysql/community-server:8.1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ private void runImage(String image, boolean shouldSucceed) throws Exception {

@Test
void pullAllowedImage() throws Exception {
runImage("mysql/mysql-server:8.0", true);
runImage("container-registry.oracle.com/mysql/community-server:8.1", true);
}

@Test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
mysql/mysql-server:8.0
container-registry.oracle.com/mysql/community-server:8.1
mariadb:10.8
postgres:15-alpine
opengauss/opengauss:3.1.0
Expand Down

0 comments on commit bb9d7ea

Please sign in to comment.