All Projects → catalyst → docker_moodle

catalyst / docker_moodle

Licence: other
A Moodle development environment. Maintained via https://github.com/catalyst/docker_moodle_builder

Programming Languages

Dockerfile
14818 projects
shell
77523 projects

docker_moodle

Requirements

  • Docker
  • Docker-compose

Usage

  1. Clone this repository
git clone [email protected]:catalyst/docker_moodle.git docker_moodle
  1. Clone Moodle code into siteroot
cd docker_moodle
git clone [email protected]:moodle/moodle.git siteroot
  1. Copy site config across
cp moodle-config siteroot/config.php
  1. Start containers
docker-compose up

Utility Commands

Use the following command to enter the bash shell of each container. Replaces using the docker exec function.

To change container names, change name in yaml file and control file.

Enter web container:

./control web

Enter db container:

./control db

Enter test database container:

./control testdb

Restore db locally:

./control dbrestore <filename.gz>

Running Tests

To setup the testing environment run:

./control web
composer install
php admin/tool/phpunit/cli/init.php

To run tests:

./control web
./vendor/bin/phpunit
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].