forked from noahgift/python-for-devops-may-2022
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (18 loc) · 687 Bytes
/
Makefile
File metadata and controls
24 lines (18 loc) · 687 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
install:
pip install --upgrade pip &&\
pip install -r requirements.txt
lint:
pylint --disable=R,C *.py devopslib
test:
python -m pytest -vv --cov=devopslib test_*.py
format:
black *.py devopslib/*.py
post-install:
python -m textblob.download_corpora
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 devops-may-2022 .
docker tag devops-may-2022:latest 561744971673.dkr.ecr.us-east-1.amazonaws.com/devops-may-2022:latest
docker push 561744971673.dkr.ecr.us-east-1.amazonaws.com/devops-may-2022:latest
all: install post-install lint test format deploy