-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 770 Bytes
/
Makefile
File metadata and controls
29 lines (21 loc) · 770 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
include ops/common.mk
include ./ops/pip.mk
deps:: common_jq_binary
pyvenv-3.6 env
./env/bin/pip install -r requirements.txt --no-cache-dir
build: clean deps build_container
docker cp build-container:/var/task/ ./build
cd ./build && zip -r9 ../deps.zip *
build_container: clean_container
docker build -t jonathanporta/lambda_image_utils_prebuilt .
docker run --name build-container jonathanporta/lambda_image_utils_prebuilt:latest
clean: clean_container
@-rm -rf ./dist ./env ./*.egg-info ./tmp ./build
@-rm -f ./deps.zip
clean_container:
@-docker rm build-container
shell: build_container
@-docker rm build-container
docker run --rm -it jonathanporta/lambda_image_utils_prebuilt:latest bash
package: pip_package
release: aws_lambda_deploy pip_release