Moodle implemented in Docker using the php:7-apache base image. TODO: - Minimize image(Alpine)
10K+
Moodle Docker Image, Documentation and Compose files to get Moodle up and running for development and production purposes.
git clone https://github.com/jbkc85/docker-moodle.git
cd docker-moodle
docker build -t yourtag/moodle .
Once you have the image available, you need to have your config.php available for mounting
docker run -d -h moodle.example.com --name moodle.example.com \
-v moodle-config.php:/var/www/html/config.php:ro \
-p 80:80 yourtag/moodle
UNDER CONSTRUCTION...
If you are interested in running this container locally to see what it acts like, simply run the test-compose.yml which will provide you with a Postgres Database and Moodle. By default it will be listening on the localhost port 41337 to avoid any issues with port collisions.
git clone https://github.com/jbkc85/docker-moodle.git
docker-compose -f test-compose.yml up -d
This repository utilizes TravisCI for testing and then pushing to the Docker Hub.
sudo: required
services:
- docker
before_install:
- docker-compose -f travis-compose.yml -p travis up -d
- docker exec -it travis_moodle_1 /usr/local/bin/php /var/www/html/admin/cli/install_database.php --adminpass=pa55w0rd [email protected] --agree-license --fullname TravisCI --shortname travis
- curl -XGET --header 'Host: moodle.local' localhost
# Check site to see if it works
# run jMeter tests
# run PHPUnit Tests inside of container
TODO:
To see Moodlenetes and a brief tutorial on deploying Moodle to Kubernetes, you can follow the documentationa
Content type
Image
Digest
Size
301.8 MB
Last updated
over 9 years ago
docker pull jbkc85/docker-moodle