-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
52 lines (40 loc) · 1.1 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
.PHONY: all
all:
ifndef VERBOSE
.SILENT:
endif
.PHONY: cached-chroot
cached-chroot:
./make/setup-cached-chroot.sh
dev-data/db:
mkdir -p -m 777 dev-data/db
.PHONY: setup-dev-data
setup-dev-data: cached-chroot dev-data/db
.PHONY: clear-db
clear-db:
echo 'Deleting dev database...'
rm -rf dev-data/db
.PHONY: clear-chroot
clear-chroot:
echo 'Deleting dev chroot...'
./make/clear-cached-chroot.sh
.PHONY: build-dev
build-dev:
echo 'Building dev container...'
docker build -t hpiicpc/judge-dev:latest ${CI+--cache-from hpiicpc/judge-dev:latest} docker/dev
.PHONY: start-dev
start-dev: setup-dev-data
./make/start-dev.sh
.PHONY: stop-dev
stop-dev:
echo 'Stopping dev container...'
docker stop judge-dev > /dev/null
echo 'Stopping mariadb container...'
docker stop mariadb > /dev/null
.PHONY: setup-dev-settings
setup-dev-settings:
docker exec judge-dev /domjudge/webapp/bin/console doctrine:fixture:load --append --group=HpiSettingsFixture
docker exec judge-dev /domjudge/webapp/bin/console doctrine:fixture:load --append --group=HpiJudgeDevSetupFixture
.PHONY: build-prod
build-prod:
./docker/prod/build.sh