Skip to content

interest on having wrapping scripts? #261

Open
@jpahullo

Description

@jpahullo

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;

  1. 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.
  2. 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 a docker compose down actually.
  3. restart.sh: invokes destroy.sh and start.sh, in this order.
  4. install.sh: proceeds with the non-interactive installation of the Moodle database.
  5. activate-xdebug.sh: wraps up all the process to install (if it is the first execution) and sets the xdebug module available.
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions