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
moodle:
http://localhost/moodle
phpmyadmin:
http://localhost/phpmyadmin
behat:
http://127.0.0.1/moodle
selenium:
http://localhost:4444/wd/hub/
Mysql:
root
pw_root
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
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"
https://severalnines.com/blog/mysql-docker-containers-understanding-basics
https://www.codeschool.com/courses/try-docker
https://docker-curriculum.com/