I have setup a workflow that uses circleci next-gen convenience images, primary is openjdk and secondary is mysql. Everything works perfectly and I can talk to the secondary image via 127.0.0.1 to do what I need via mysql client.
The only problem is I cant work out/find a way to configure mysql server settings (that I would normally my adding/changing my.cnf) such as setting lower_case_table_names or explicit_defaults_for_timestamp that we need set. I know there are limitations to how docker images can communicate so understand if this may not be possible.
Definately aware that we can do our own docker images to configure things exactly how we want but we like the simplicity of using the convenience images. Mainly I am just trying to figure out if I am missing something obvious about how to configure the secondary images or if others use the convenience images with all default settings.
While I’m not certain about your exact configuration options, even with secondary images you should be able to pass in configuration options as command line arguments to the MySql command that’s executed when the docker container runs.
Thanks for your reply @zmarkan. That was what I was after, I think I missed being able to run commands on the secondary image like that when I was reading the documentation, I have the below working now.
Multiple commands work using a comma I realised, complete config example below in case others come across this and need it. Thanks again for pointing me in the right direction @zmarkan!