-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
34 lines (28 loc) · 924 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
31
32
33
34
.PHONY: local-dev
local-dev:
cp .env.sample .env
echo "\nDEPLOYMENTS_MOUNT_DIR='$(PWD)/deployments' # DO NOT EDIT THIS - FIX FOR RESOURCE SHARING BUG" >> .env
echo "\nNGINX_PROXY_CONF_LOCATION='$(PWD)/nginx-confs' # DO NOT EDIT THIS - FIX FOR RESOURCE SHARING BUG" >> .env
echo "\nDEPLOYMENT_HOST='localhost' # DO NOT EDIT THIS" >> .env
bash setup-vault.sh docker-compose-local.yml
echo "\nVAULT_BASE_URL='http://localhost:8200'" >> .env
mkdir -p deployments nginx-confs
docker-compose -f docker-compose-local.yml up -d nginx
.PHONY: sarthi
sarthi:
python app.py
.PHONY: test-lint
test-lint:
pre-commit run --all-files
python -m pytest -vvv tests
.PHONY: test
test:
python -m pytest -vvv tests
.PHONY: reset
reset:
rm -f .env keys.txt parsed-key.txt ansi-keys.txt
docker compose -f docker-compose-local.yml down -v
rm -rf deployments nginx-confs
.PHONY: code-cov
code-cov:
coverage run -m pytest tests