-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (33 loc) · 936 Bytes
/
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
.PHONY: clean
clean:
rm -rf .aws-sam
.PHONY: build
build: style update_version
sam build --use-container
.PHONY: deploy
deploy: build
sam deploy
.PHONY: style
style:
black thumbnailer
.PHONY: update_version
update_version:
git describe --tags > thumbnailer/version
.PHONY: logs
logs:
sam logs -n ThumbnailerFunction --stack-name ${STACK_NAME} --tail
.PHONY: test-info
test-info:
http ${TEST_API_URL}/info/${TEST_ENCODED_URI} \
Uri-Prefix:${TEST_URI_PREFIX} X-Api-Key:${TEST_X_API_KEY}
.PHONY: test-th
test-th:
http -v -d ${TEST_API_URL}/thumbnail/${TEST_ENCODED_URI}/long-edge/666 Accept:image/jpg \
Uri-Prefix:${TEST_URI_PREFIX} X-Api-Key:${TEST_X_API_KEY}
.PHONY: test-fit
test-fit:
http -v -d ${TEST_API_URL}/fit/${TEST_ENCODED_URI}/width/200/height/100 Accept:image/jpg \
Uri-Prefix:${TEST_URI_PREFIX} X-Api-Key:${TEST_X_API_KEY}
.PHONY: local
local: build
sam local start-api --env-vars env-local.json