You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-10Lines changed: 3 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,9 @@
1
1
# alpine-aws-python-lambda
2
-
Lightweight [docker image](https://hub.docker.com/r/kilna/alpine-aws-python-lambda/) for running
3
-
and packaging python-based AWS lambda code. This is based on [nficano](https://github.com/nficano/)'s
4
-
super useful [python-lambda library](https://github.com/nficano/python-lambda/)
2
+
Lightweight [docker image](https://hub.docker.com/r/kilna/alpine-aws-python-lambda/) for running and packaging python-based AWS lambda code. This is based on [nficano](https://github.com/nficano/)'s super useful [python-lambda library](https://github.com/nficano/python-lambda/)
5
3
6
4
# Usage
7
5
8
-
An example of a usable project can be found in the [example/](./example/) directory. This lambda
9
-
function takes a JSON input file like the provided [event.json](./example/event.json) and returns an
10
-
ASCII-art version of the text described in it. The provided [Dockerfile](./example/Dockerfile) derives
11
-
from this image and loads the current workspace into the image, then installs dependencies from the
An example of a usable project can be found in the [example/](./example/) directory. This lambda function takes a JSON input file like the provided [event.json](./example/event.json) and returns an ASCII-art version of the text described in it. The provided [Dockerfile](./example/Dockerfile) derives from this image and loads the current workspace into the image, then installs dependencies from the [requirements.txt](./example/requirements.txt) file.
13
7
14
8
To build a docker image called _example-lambda-image_ with the example lambda function in it, run:
15
9
@@ -36,8 +30,7 @@ If you would like to see if your lambda function builds properly, run:
36
30
$ docker run example-lambda-image lambda build
37
31
```
38
32
39
-
If you would like to get a ZIP file of the lambda function suitable for uploading to Amazon, and the
40
-
build log in one command:
33
+
If you would like to get a ZIP file of the lambda function suitable for uploading to Amazon, and the build log in one command:
41
34
42
35
```
43
36
$ docker run example-lambda-image sh -c 'rm -rf build.log dist || true && lambda build &>build.log && tar -c build.log dist' | tar -x -v
0 commit comments