-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
47 lines (34 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
help:
@echo "Docker-compose-backed builder for the github security advisory dashboard."
@echo "Usage: make [command]"
@echo ""
@echo "Commands:"
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
# DEVELOP
run: rebuild assets
docker-compose up
shell:
docker-compose run dashboard bash
rebuild:
docker-compose build --pull
test:
export FLASK_ENV=development
docker-compose run -e TOKEN=faketoken dashboard ./test.sh tests
contract-test:
export FLASK_ENV=development
docker-compose run dashboard ./test.sh contract_tests
audit:
docker-compose run dashboard python -m cProfile -o audit.profile audit_lambda.py audit
task:
docker-compose run dashboard python audit_lambda.py run-task $(TASK)
send_to_splunk:
docker-compose run dashboard python audit_lambda.py send_to_splunk
# DEPLOY
reset:
rm -f setup.cfg
clean:
rm -rf setup.cnf build/.package build/*.zip
zip:
docker-compose run dashboard bash pack.sh
deploy: zip
cd build/terraform; terraform apply