Skip to content

Commit 0abcc96

Browse files
committed
Pull separately
1 parent c558997 commit 0abcc96

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

internal/sqltest/docker/mysql.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ func StartMySQLServer(c context.Context) (string, error) {
1515
return "", err
1616
}
1717

18+
{
19+
_, err := exec.Command("docker", "pull", "mysql:8").CombinedOutput()
20+
if err != nil {
21+
return "", fmt.Errorf("docker pull: mysql:8 %w", err)
22+
}
23+
}
24+
1825
ctx, cancel := context.WithTimeout(c, 10*time.Second)
1926
defer cancel()
2027

internal/sqltest/docker/postgres.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ func StartPostgreSQLServer(c context.Context) (string, error) {
1515
return "", err
1616
}
1717

18+
{
19+
_, err := exec.Command("docker", "pull", "postgres:16").CombinedOutput()
20+
if err != nil {
21+
return "", fmt.Errorf("docker pull: postgres:16 %w", err)
22+
}
23+
}
24+
1825
ctx, cancel := context.WithTimeout(c, 5*time.Second)
1926
defer cancel()
2027

0 commit comments

Comments
 (0)