Skip to content

A CLI to setup and manage a local Moodle development environment

License

Notifications You must be signed in to change notification settings

LeandroBerlin/moodle-cli-toolkit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moodle CLI Toolkit

A CLI to setup and manage a local Moodle development environment

It uses

Features

  • All supported database servers (PostgreSQL, MySQL, Micosoft SQL Server, Oracle XE)
  • Behat/Selenium configuration for Firefox and Chrome
  • Catch-all smtp server and web interface to messages using MailHog
  • All PHP Extensions enabled configured for external services (e.g. solr, ldap)
  • All supported PHP versions
  • Zero-configuration approach
  • Backed by automated tests

Prerequisites

Moodle Docker requires

Quick start

  • clone this repo
    git clone https://github.com/LeandroBerlin/moodle-cli-toolkit
  • change executing permissions
    cd moodle-cli-toolkit && chmod +x cli.sh
  • set local variable
export MOODLE_DOCKER_WWWROOT=$(pwd)/moodle/
export MOODLE_DOCKER_PATH=$(pwd)/moodle-docker/
export MOODLE_DOCKER_DB=pgsql
export MOODLE_DOCKER_PHP_VERSION=7.3
  • change the configuration in the cli.sh script (optional)
  • run the setup script
    ./cli.sh --setup

Commands

Syntax: cli.sh [--setup|--start|--stop|--delete|--reset|--dump|--help]

options:
--setup Setup and launch the development environment
--start Start the development environment
--stop Stop the development environment
--delete Stop and delete the docker containers
--reset Cleanup, remove docker and Moodle dirs
--dump Create a dump of the database
--help Print this help.

About

A CLI to setup and manage a local Moodle development environment

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages