Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: use a fixed version of MySQL #617

Merged
merged 1 commit into from Nov 10, 2022
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 5 additions & 4 deletions docker_test.go
Expand Up @@ -39,6 +39,7 @@ import (
)

const (
mysqlImage = "docker.io/mysql:8.0.30"
nginxImage = "docker.io/nginx"
nginxAlpineImage = "docker.io/nginx:alpine"
nginxDefaultPort = "80/tcp"
Expand Down Expand Up @@ -968,7 +969,7 @@ func TestContainerCreationTimesOutWithHttp(t *testing.T) {
func TestContainerCreationWaitsForLogContextTimeout(t *testing.T) {
ctx := context.Background()
req := ContainerRequest{
Image: "docker.io/mysql:latest",
Image: mysqlImage,
ExposedPorts: []string{"3306/tcp", "33060/tcp"},
Env: map[string]string{
"MYSQL_ROOT_PASSWORD": "password",
Expand All @@ -991,7 +992,7 @@ func TestContainerCreationWaitsForLog(t *testing.T) {
// exposePorts {
ctx := context.Background()
req := ContainerRequest{
Image: "docker.io/mysql:latest",
Image: mysqlImage,
ExposedPorts: []string{"3306/tcp", "33060/tcp"},
Env: map[string]string{
"MYSQL_ROOT_PASSWORD": "password",
Expand Down Expand Up @@ -1304,7 +1305,7 @@ func Test_BuildContainerFromDockerfileWithBuildLog(t *testing.T) {
func TestContainerCreationWaitsForLogAndPortContextTimeout(t *testing.T) {
ctx := context.Background()
req := ContainerRequest{
Image: "docker.io/mysql:latest",
Image: mysqlImage,
ExposedPorts: []string{"3306/tcp", "33060/tcp"},
Env: map[string]string{
"MYSQL_ROOT_PASSWORD": "password",
Expand Down Expand Up @@ -1363,7 +1364,7 @@ func TestContainerCreationWaitingForHostPortWithoutBashThrowsAnError(t *testing.
func TestContainerCreationWaitsForLogAndPort(t *testing.T) {
ctx := context.Background()
req := ContainerRequest{
Image: "docker.io/mysql:latest",
Image: mysqlImage,
ExposedPorts: []string{"3306/tcp", "33060/tcp"},
Env: map[string]string{
"MYSQL_ROOT_PASSWORD": "password",
Expand Down
2 changes: 1 addition & 1 deletion docs/features/wait/log.md
Expand Up @@ -9,7 +9,7 @@ The Log wait strategy will check if a string occurs in the container logs for a

```golang
req := ContainerRequest{
Image: "docker.io/mysql:latest",
Image: "docker.io/mysql:8.0.30",
ExposedPorts: []string{"3306/tcp", "33060/tcp"},
Env: map[string]string{
"MYSQL_ROOT_PASSWORD": "password",
Expand Down
2 changes: 1 addition & 1 deletion docs/features/wait/multi.md
Expand Up @@ -6,7 +6,7 @@ The Multi wait strategy will hold a list of wait strategies, in order to wait fo

```golang
req := ContainerRequest{
Image: "docker.io/mysql:latest",
Image: "docker.io/mysql:8.0.30",
ExposedPorts: []string{"3306/tcp", "33060/tcp"},
Env: map[string]string{
"MYSQL_ROOT_PASSWORD": "password",
Expand Down