-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (53 loc) · 2.23 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
start:
docker compose up -d --build
stop:
docker compose down
lint:
docker exec pigeonhole-backend flake8 .
docker exec pigeonhole-frontend npm run lint
superuser:
docker exec -it pigeonhole-backend python manage.py createsuperuser
mockdata:
docker exec -it pigeonhole-backend python manage.py runscript mockdata
registry:
docker build examples/advanced-evaluation/always-succeed -t test-always-succeed
docker tag test-always-succeed localhost:5000/test-always-succeed
docker push localhost:5000/test-always-succeed
docker build examples/advanced-evaluation/helloworld -t test-helloworld
docker tag test-helloworld localhost:5000/test-helloworld
docker push localhost:5000/test-helloworld
docker build examples/advanced-evaluation/fibonacci-python -t fibonacci-python
docker tag fibonacci-python localhost:5000/fibonacci-python
docker push localhost:5000/fibonacci-python
evaltest:
docker exec -it pigeonhole-backend python manage.py runscript eval_test
submit:
docker exec -it pigeonhole-backend python manage.py runscript submit
reset:
docker image prune -af
docker system prune
backendtest:
docker exec -it pigeonhole-backend sh /usr/src/app/backend/runtests.sh
backendshell:
docker exec -it pigeonhole-backend sh
frontshell:
docker exec -it pigeonhole-frontend sh
componenttest:
docker exec -it pigeonhole-frontend npx jest
coveragecomponenttest:
docker exec -it pigeonhole-frontend npx jest --coverage --silent
silentcomponenttest:
docker exec -it pigeonhole-frontend npx jest --silent
resetdb:
docker exec pigeonhole-backend python manage.py flush --noinput
docker exec -it pigeonhole-backend python manage.py runscript mockdata
prodregistry:
docker build examples/advanced-evaluation/always-succeed -t test-always-succeed
docker tag test-always-succeed sel2-1.ugent.be:2002/test-always-succeed
docker push sel2-1.ugent.be:2002/test-always-succeed
docker build examples/advanced-evaluation/helloworld -t test-helloworld
docker tag test-helloworld sel2-1.ugent.be:2002/test-helloworld
docker push sel2-1.ugent.be:2002/test-helloworld
docker build examples/advanced-evaluation/fibonacci-python -t fibonacci-python
docker tag fibonacci-python sel2-1.ugent.be:2002/fibonacci-python
docker push sel2-1.ugent.be:2002/fibonacci-python