Skip to content

Commit

Permalink
chore: use a fixed version of MySQL (#617)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Nov 10, 2022
1 parent 42d1d2f commit 1189044
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
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

0 comments on commit 1189044

Please sign in to comment.