testcontainers / testcontainers-dotnet

A library to support tests with throwaway instances of Docker containers for all compatible .NET Standard versions.
https://dotnet.testcontainers.org
MIT License
3.65k stars 250 forks source link

fix(MySql): Create an empty `/var/lib/mysql-files` directory to prevent older versions from failing to start #1144

Closed 0xced closed 3 months ago

0xced commented 3 months ago

What does this PR do?

This pull request creates an empty /var/lib/mysql-files directory for MySql containers. This directory is required for MySql containers to properly start. The /var/lib/mysql-files directory exists for mysql:8.0.29 images onwards but does not exist for mysql:8.0.28 and earlier images.

Why is it important?

This fixes a regression introduced in Testcontainers.MySql 3.8.0

Related issues

Fixes #1142

netlify[bot] commented 3 months ago

Deploy Preview for testcontainers-dotnet ready!

Name Link
Latest commit 33940903c13c3977061d36e66ccd42162251a996
Latest deploy log https://app.netlify.com/sites/testcontainers-dotnet/deploys/6601992089e7580008374d33
Deploy Preview https://deploy-preview-1144--testcontainers-dotnet.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.