Docker testing suite for Moodle.
- Author: Luuk Verhoeven, MoodleFreak.com
- Docker Hub: https://hub.docker.com/r/moodlefreak/docker-md/
For stable Moodle 3.5
git submodule add -b moodle35 [email protected]:MoodleFreak/docker-md.git dockermd_moodle35_$(basename `pwd`)
For stable Moodle 3.4
git submodule add -b moodle34 [email protected]:MoodleFreak/docker-md.git dockermd_moodle34_$(basename `pwd`)
For stable Moodle 3.1
git submodule add -b moodle31 [email protected]:MoodleFreak/docker-md.git dockermd_moodle31_$(basename `pwd`)
cd dockermd_*
cp docker-compose.override.example.yml docker-compose.override.yml
Edit docker-compose.override.yml
If your plugin is a git project:
# Prevent adding the folder to your project.
touch .gitignore && echo "*dockermd_*/" >> .gitignore
# If the git submodule command added the directory.
git reset HEAD dockermd_moodle35_$(basename `pwd`)
# Check the status.
git status
cd dockermd_*
docker-compose up
OR
docker-compose up --force-recreate
cd dockermd_*
git pull
- PHP7.0.
- Moodle cron is running every minute.
- plugin-testing tools.
- NPM install.
- Moodle installed on the image itself makes it lot faster.
- Auto install Moodle to the db
directlogin.php
in the www root, no user needed to login.- Debug messages appears in your console.
- Install more recent version of PHP 7.1 or 7.2
- Catch outgoing e-mail, currently there is no outgoing mail possible.
cd dockermd_*
# Start
docker-compose up
# Start and recreate.
docker-compose up --force-recreate
# Stop and remove
docker-compose stop && echo Y | docker-compose rm
# Bash
docker ps
docker exec -i -t NAME /bin/bash