Skip to content

A Development Environment for Moodle including Testserver

Notifications You must be signed in to change notification settings

TobiGa/docker_moodle_environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

setup:

Clone git repository with --recurse-submodules to load moodle.git

git clone --recurse-submodules https://github.com/TobiGa/docker_moodle_environment.git foldernameAsDesired

build docker image

sudo docker-compose build

run docker image

sudo docker-compose up \ Ctrl+C to stop

Urls:

moodle:
http://localhost/moodle

phpmyadmin:
http://localhost/phpmyadmin

behat:
http://127.0.0.1/moodle

selenium:
http://localhost:4444/wd/hub/

User:

Mysql:
root pw_root

Docker-Commands:

show running container sudo docker ps

stop running container sudo docker stop (sudo docker ps -a -q)

shell access sudo docker exec -it containername bash

delete images sudo docker down
with database/volume sudo docker down -v

test:

Results: /moodle/behat_testoutput
vendor/bin/behat --config /var/www/behat_moodledata/behatrun/behat/behat.yml --tags @mod_book --format moodle_screenshot --format-settings '{"formats": "html", "image"}' --out '/var/www/html/mbsmoodle/behat_testoutput' --format moodle_progress --out "/var/www/html/mbsmoodle/behat_testoutput/progress_$(date +"%y_%m_%d").txt"

Docker Tutorials:

https://severalnines.com/blog/mysql-docker-containers-understanding-basics
https://www.codeschool.com/courses/try-docker
https://docker-curriculum.com/

About

A Development Environment for Moodle including Testserver

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages