File size: 658 Bytes
2b93e1d
 
 
 
 
6a77b20
2b93e1d
 
6a77b20
2b93e1d
1b4e06d
 
 
2b93e1d
 
 
 
 
 
 
 
 
 
 
 
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
install:
	pip install --upgrade pip &&\
		pip install -r requirements.txt

format:	
	black app.py

lint:
	pylint --disable=R,C app.py

test:
	python -m pytest -vv test_app.py
 
run: 
	#run docker
	docker run -p 127.0.0.1:8080:8080 1896dd6bda62

# deploy:
# 	#deploy
# 	aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin 561744971673.dkr.ecr.us-east-1.amazonaws.com
# 	docker build -t fastapi-wiki .
# 	docker tag fastapi-wiki:latest 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapi-wiki:latest
# 	docker push 561744971673.dkr.ecr.us-east-1.amazonaws.com/fastapi-wiki:latest

all: install lint test format #deploy