I’m attempting to run an official mysql container: centos/mysql-57-centos7 on concourse to:
-create a database
I have an issue whereby the docker container contains an ENTRYPOINT CMD of
run mysql-d (https://github.com/sclorg/mysql-container/blob/master/5.7/Dockerfile#L80).
If I execute commands in the args section, these override the default CMD in the dockerfile which starts the mysql daemon and then mysql isn’t started.
mysql -u root -e “CREATE DATABASE FOOBAR;”
If I exec
run-mysqld,it runs mysql in the foreground and them I’m stuck there.
Attempting to exec mysql to run in the background:
run-mysqld & is also not successful.
Any ideas as to how to accomplish this?