forked from moodlehq/moodle-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
30 lines (23 loc) · 835 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.PHONY: test env start stop
env:
@export MOODLE_DOCKER_SELENIUM_VNC_PORT=5900
@export MOODLE_DOCKER_WWWROOT=/home/michiel/Projects/moodle
@export MOODLE_DOCKER_DB=mariadb
start: env
@cp config.docker-template.php $$MOODLE_DOCKER_WWWROOT/config.php
bin/moodle-docker-compose up -d
bin/moodle-docker-wait-for-db
test: env start
bin/moodle-docker-compose exec webserver php admin/tool/behat/cli/init.php
bin/moodle-docker-compose exec webserver php admin/tool/phpunit/cli/init.php
stop: env
bin/moodle-docker-compose down
destroy:
for container in $$(docker ps --format '{{.Names}}'|grep moodle); do \
echo $$container ; \
docker stop $$container; \
docker rm $$container; \
done; \
for volume in $$(docker volume ls | grep moodle | tr -s ' ' | cut -d ' ' -f 2); do \
docker volume rm $$volume; \
done