-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (52 loc) · 1.04 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
venv:
python3 -m venv .venv
( \
. .venv/bin/activate; \
pip install --upgrade pip; \
pip install -r services/pet-store/src/requirements.txt; \
pip install -r infra/src/requirements.txt; \
pip install -r requirements-dev.txt; \
)
run:
( \
. .venv/bin/activate; \
cd ./services/pet-store/src; \
python ./app.py; \
)
test:
( \
. .venv/bin/activate; \
cd ./services/pet-store/; \
python -m pytest --verbosity 3; \
)
( \
. .venv/bin/activate; \
cd ./infra/; \
python -m pytest --verbosity 3; \
)
build:
( \
. .venv/bin/activate; \
export SAM_CLI_TELEMETRY=0; \
sam build -u -c --debug && sam validate --region us-east-1 --lint; \
)
package:
sam package --resolve-s3 --output-template-file packaged.yaml --s3-bucket sam-artifacts-xxxx
deploy:
SAM_CLI_TELEMETRY=0 sam deploy --config-env dev --resolve-image-repos
delete:
sam delete --config-env dev
scale-up:
( \
cd scale; \
./xxxx.sh; \
)
docker-build:
( \
cd services/pet-store/src; \
docker build -t xx .; \
)
docker-run:
( \
docker run -it xx; \
)