This repository has been archived by the owner on Jun 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
42 lines (37 loc) · 1.72 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
.PHONY: install
install:
pip install -r requirements.txt --quiet
pip install -r src/requirements.txt --quiet
command -v papertrail || sudo gem install papertrail
.PHONY: test
test: install
dynaconf list -e testing | tail -n +2 | sed -e 's/: /=/' -e 's/"//g' -e "s/'//g" > .env
./scripts/run-tests.sh --skip-integration-tests
mypy --config-file src/mypy.ini src/server.py
pylint src --reports n
mypy --config-file src/mypy.ini src
pylint src --reports n
.PHONY: push-to-docker
push-to-docker:
cat nginx/VERSION | tr -d '\n' | xargs -I {} docker build nginx/ --tag topher200/assertion-context-nginx:{}
cat nginx/VERSION | tr -d '\n' | xargs -I {} docker push topher200/assertion-context-nginx:{}
docker build nginx/ --tag topher200/assertion-context-nginx:latest
docker push topher200/assertion-context-nginx:latest
cat src/VERSION | tr -d '\n' | xargs -I {} docker build src/ --tag topher200/assertion-context:{}
cat src/VERSION | tr -d '\n' | xargs -I {} docker push topher200/assertion-context:{}
docker build src/ --tag topher200/assertion-context:latest
docker push topher200/assertion-context:latest
.PHONY: run-app-docker-compose
run-app-docker-compose:
aws s3 cp s3://tracebacks-configuration/settings.local.toml ./
dynaconf list -e production | tail -n +2 | sed -e 's/: /=/' -e 's/"//g' -e "s/'//g" > .env
docker-compose -f docker-compose.yaml -f docker-compose.prod.yaml up --detach --remove-orphans
.PHONY: run-badcorp
run-badcorp:
docker build . -f Dockerfile-badcorp -t badcorp
docker run badcorp
.PHONY: integration-test
integration-test: install
dynaconf list -e testing | tail -n +2 | sed -e 's/: /=/' -e 's/"//g' -e "s/'//g" > .env
./scripts/setup-es-database.sh
./scripts/run-tests.sh