-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (36 loc) · 984 Bytes
/
Copy pathMakefile
File metadata and controls
51 lines (36 loc) · 984 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
cleanfiles:
find . -name \*.pyc -delete
find . -name \*__pycache__ -delete
find . -name \*~ -delete
install:
pipenv install --dev
shell:
pipenv shell
lint:
flake8 __main__.py app/*
lint/fix:
autopep8 --global-config .flake8 --in-place --aggressive --recursive .
test:
python -m pytest --cov=app ./tests/unit/ -vv --cov-report term-missing
test/integration:
python -m pytest ./tests/integration/ -vv
run:
python main.py
run/migration:
python app/migration.py
run/docker:
docker build -t rbarbioni/py-api:latest . \
&& docker run -it \
-e AWS_ACCESS_KEY_ID=foo \
-e AWS_SECRET_ACCESS_KEY=foo \
-e AWS_DEFAULT_REGION=us-east-1 \
--net=host \
rbarbioni/py-api:latest
run/docker-compose:
docker-compose -f docker-compose.yml up --build
run/docker-compose-d:
docker-compose -f docker-compose.yml up --build -d
run/docker-compose-structure:
docker-compose -f docker-compose.yml up --scale py-api=0 -d
build/docker:
docker-compose build --force-rm py-api