Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to change mariadb root host with environment variable #576

Open
jez500 opened this issue Oct 12, 2022 · 0 comments
Open

Add ability to change mariadb root host with environment variable #576

jez500 opened this issue Oct 12, 2022 · 0 comments

Comments

@jez500
Copy link

jez500 commented Oct 12, 2022

Request

It would be great if we could change the mariadb root host with an environment variable like you can on the official mariadb images
eg. https://mariadb.com/kb/en/mariadb-docker-environment-variables/#mariadb_root_host-mysql_root_host. The default appears to be root@localhost which is fine and secure, but the option to change it would be useful.

Reasoning

We use parallel tests, this requires root@% to create databases, eg laggon_1, lagoon_2, etc. This cannot be done with root@localhost

Workaround

We have added an additional entrypoint that adds root@% but it is a bunch of extra code that could be avoided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant