Skip to content

Commit

Permalink
testserver/datastore: default to mysql8, check arm
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie authored and vroldanbet committed Mar 20, 2024
1 parent 88618b9 commit dc3bfbb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/testserver/datastore/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"context"
"database/sql"
"fmt"
"runtime"
"testing"

"github.com/google/uuid"
Expand Down Expand Up @@ -61,6 +62,7 @@ func RunMySQLForTestingWithOptions(t testing.TB, options MySQLTesterOptions, bri
Name: name,
Repository: "mysql",
Tag: containerImageTag,
Platform: "linux/amd64", // mysql:5 image does not have arm support
Env: []string{"MYSQL_ROOT_PASSWORD=secret"},
ExposedPorts: []string{mysqlPortPair},
Cmd: []string{"--max-connections=500"}, // accommodate tests using the same container
Expand Down

0 comments on commit dc3bfbb

Please sign in to comment.