-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (16 loc) · 752 Bytes
/
Makefile
File metadata and controls
21 lines (16 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export
PYTHONPATH := .
test:
FLASK_CONFIGURATION=test python -m pytest
run:
# Start dev dynamodb with java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
FLASK_ENV=development FLASK_CONFIGURATION=dev FLASK_APP=app.py python -m flask run
run-prod:
FLASK_ENV=production FLASK_CONFIGURATION=production FLASK_APP=app.py python -m flask run
docker-build:
docker build -t datatrust:local .
docker-deploy:
docker build -t datatrust:local .
$(shell aws ecr get-login --no-include-email --region us-west-1 --profile computable)
docker tag datatrust:local 365035671514.dkr.ecr.us-west-1.amazonaws.com/computable/datatrust-api:latest
docker push 365035671514.dkr.ecr.us-west-1.amazonaws.com/computable/datatrust-api:latest