Description
Hi,
Would you like me to build a patch for providing wrapping scripts to start really quickly over developing with this tool?
I like to automate things, and I spotted something on another issue as part of its analysis.
In the end, I built myself this scripts set;
start.sh
: expects a moodle-dev.env file on the running directory (i.e., the Moodle wwwroot) with the set of all variables. Also for self-documentation. This script builds containers and an empty database. Also installs some elements inside the webserver container, like the composer.destroy.sh
: expects also the moodle-dev.env file on the running directory (i.e., the Moodle wwwroot) with the set of all variables. This scripts proceeds with adocker compose down
actually.restart.sh
: invokesdestroy.sh
andstart.sh
, in this order.install.sh
: proceeds with the non-interactive installation of the Moodle database.activate-xdebug.sh
: wraps up all the process to install (if it is the first execution) and sets the xdebug module available.deactivate-xdebug.sh
: wraps up the process to deactivate (not uninstall) the xdebug module.
Keep in mind that all these scripts are a wrapper of all the commands detailed in the README.md.
I could also suggest a local.yml.example that I use to bind mount data directories to the host, so that debugging and searching and validating things are really easier. Also, it helps to keep the database between docker executions.
I could make this patch easily, and then improve its content according to your proposals.
I could only provide linux scripts. If anyone could implement the windows counterparts, it would be fantastic.
Thanks for your time,
Jordi