MySQLContainer unable to start when using withConfigurationOverride() #6304
-
TestContainers Version: 1.17.6v2.13.0 I'm running a MySQLContainer for 8.0.31 and I'm specifying a specific configuration override file:
mysql-configuration-override contains: [mysqld] The container fails to start. This is the output from the mysql container logs: 2022-12-14 16:28:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.31-1.el8 started. I looked at the mysql image and this is the only step I could find that references /etc/mysql/conf.d: set -eux; |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I did a similar test with mysql:8.0.31 and works fine. |
Beta Was this translation helpful? Give feedback.
mysql-configuration-override
is the folder where the conf file should be. So, havingsrc/test/resources/mysql-configuration-override/my.cnf
created will make it work. Look at this exampleI did a similar test with mysql:8.0.31 and works fine.