I am trying to make a github actions pipeline for a frappe project and I am using github runners. So I have to go throughout the frappe setup on every push.
all the steps are working except for the mariaDB setup , I am facing an issue regarding the setup of the db root default password as the pipeline is happening in a non-interactive mode, I have no prompt for setting this password.
I get this error: Access Denied for User 'root'@'localhost' (using password: YES)
Is there any better approach to do this please? knowing that if I use a mariaDB service in my pipeline I will have to append the /etc/mysql/my.cnf to allow it to work with frappe.
Thanks a lot for your answer , the approach is so interesting and I tried it.
I Successfully mounted my extra config file inside /etc/mysql/conf.d , the only issue I have now is that the config is not taken in consideration . I am still getting this error :
For key character_set_server. Expected value utf8mb4, found value latin1
check_suite_focus=true#step:7:141)For key collation_server. Expected value utf8mb4_unicode_ci, found value latin1_swedish_ci
check_suite_focus=true#step:7:142)================================================================================
check_suite_focus=true#step:7:143)Creation of your site - example.com failed because MariaDB is not properly
check_suite_focus=true#step:7:144)configured. If using version 10.2.x or earlier, make sure you use the
check_suite_focus=true#step:7:145)the Barracuda storage engine.
check_suite_focus=true#step:7:146)
check_suite_focus=true#step:7:147)Please verify the settings above in MariaDB's my.cnf. Restart MariaDB. And
check_suite_focus=true#step:7:148)then run `bench new-site example.com` again.
check_suite_focus=true#step:7:149)
and here is my extra configuration (which I mmounted on /etc/mysql/conf.d/frappe.cnf
I think that my file is not included in /etc/mysql/my.cnf
How can I check that this line figures inside /etc/mysql/my.cnf includedir /etc/mysql/conf.d/
I don’t know if I am missing something but I think that the frappe/bench:latest does not come with a pre-installed maraidb service so I have to use another mariadb image and then specify it as a host
bench set-mariadb-host mariadb
in this case , I think that this would not resolve the issue
Am I right , please ?
I wish you are at your best, I’m trying to do the same thing here and passed by your post. Now I’m facing the same issue. Did you find a solution for it yet?