-
Notifications
You must be signed in to change notification settings - Fork 266
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
Make database engine version available as a parameter #170
Comments
Yeah, we have a similar request also for moodle-ci-runner, that runs all our CI jobs, see MDLSITE-6376. Surely both (they are different, but "parallel" enough) could be achieved in a similar way. A) For some reason what I had been thinking was, more or less:
I'm aware it's not the unique alternative. Maybe we could also: B) Do everything with existing It would be really interesting to see if we can come with an agreement and get this implemented, yes! Ciao :-) |
Got a version of it working - https://github.com/aspark21/moodle-docker/blob/mysql8/db.mysql8.yml For that reason, we're going to need a separate image. Just verifying it runs properly and I'll submit a MR with that first step. Having a look at moodle-ci-runner, the version change would need to take place here: The deprecated parameters were already removed to enable mariadb So the main thing is wether or not --default-authentication-plugin=mysql_native_password is required. |
Just for reference and similarities... we already added support to DB tags to |
I have added pull #225 which allows you to specify database version |
It seemed the version of MySQL and MariaDB were both very old / out of support. However after digging through the tags in Docker I now realise mysql:5 -> 5.7.34 and mariadb:10 ->10.5.10 which is all relatively recent.
The version is hardcoded though, and it would be useful to be able to execute this with mysql 8 for example.
https://github.com/moodlehq/moodle-docker/blob/master/db.mysql.yml#L8
MySQL 8.0 has been supported since Moodle 3.5 so all supported versions can handle it (since only 3.9+ are now in support - https://docs.moodle.org/dev/Releases#Version_support)
Thinking about it though there's two ways to go about it:
Any thoughts?
May provide a PR
The text was updated successfully, but these errors were encountered: