Containers to ease installation of various Moodle configurations.
469
Dockerfiles to ease installation of various Moodle configurations.
Build any of the available containers from the root folder with the following commands:
docker build -t bencroskery/moodle:php54 php54
docker build -t bencroskery/moodle:php7 php7
docker build -t bencroskery/moodle:php54o php54o
docker build -t bencroskery/moodle:oracle oracle
Start a database (MySQL/PostgreSQL) and link it to any of the PHP Moodle containers. For Oracle use the provided Oracle container with the PHP5.4 + Oracle Client.
-p 8080:80-e INSTALL=truedocker exec my-moodle pullMoodle.sh once the server has started to wipe the docroot and pull the latest Moodle-v \local\folder:\var\www\htmldocker exec a-oracle ./setPassword.sh passworddocker exec -it my-moodle /bin/bashExamples below:
docker run -d --name a-mysql -e MYSQL_ROOT_PASSWORD=password -d mysql
docker run -d --link a-mysql:mysql -p 8080:80 -e INSTALL=true --name my-moodle bencroskery/moodle:php7
# Moodle config
# -------------
# host: mysql
# name: moodle (can be changed)
# user: root
# password: password
docker run -d --name a-postgres -e POSTGRESS_PASSWORD=password -d postgres
docker run -d --link a-postgres:postgres -p 8080:80 -v \local\folder:\var\www\html --name my-moodle bencroskery/moodle:php54
# Moodle config
# -------------
# host: postgres
# name: postgres
# user: postgres
# password: password
docker run -d --name a-oracle --shm-size=1g bencroskery/moodle:oracle
docker run -d --link a-oracle:oracle -p 8080:80 --name my-moodle bencroskery/moodle:php54o
# Wait a few minutes for oracle to start up
docker exec a-oracle ./setMoodle.sh
# Moodle config
# -------------
# host: oracle
# name: xe
# user: system
# password: password
# port: 1521
SSH into any of the machines using docker exec -it <container> /bin/bash
Change the Oracle DB password using docker exec a-oracle ./setPassword.sh password
Read more information about the DB's on the MySQL, PostgreSQL, Oracle.
Content type
Image
Digest
Size
434.8 MB
Last updated
over 9 years ago
docker pull bencroskery/moodle:php54o