Skip to content
This repository was archived by the owner on Dec 11, 2023. It is now read-only.

Commit c3da8d2

Browse files
committed
Structure update
1 parent 4694c6f commit c3da8d2

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### AWS Lambda Python 3.7 buildtemplate
2+
3+
Knative buildtemplate based on [LambCI](https://github.com/lambci/docker-lambda) Python 3.7 runtime
File renamed without changes.
File renamed without changes.

buildtemplate.yaml renamed to python-3.7/buildtemplate.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,22 @@ spec:
3838
- |
3939
cd /workspace/${DIRECTORY}
4040
cat <<EOF > Dockerfile
41-
FROM golang
41+
FROM golang
4242
RUN CGO_ENABLED=0 go get github.com/triggermesh/aws-custom-runtime
43+
RUN git clone github.com/triggermesh/aws-python-runtime
4344
4445
FROM python:alpine3.7
4546
46-
WORKDIR /workspace
47+
WORKDIR /opt
4748
48-
ENV LAMBDA_TASK_ROOT "/workspace"
49+
ENV LAMBDA_TASK_ROOT "/opt"
4950
ENV _HANDLER "${HANDLER}"
5051
5152
COPY --from=0 /go/bin/aws-custom-runtime .
53+
COPY --from=0 /go/aws-python-runtime/python-3.7/ .
5254
COPY . .
5355
54-
ENTRYPOINT ["/workspace/aws-custom-runtime"]
56+
ENTRYPOINT ["/opt/aws-custom-runtime"]
5557
EOF
5658
- name: export
5759
image: gcr.io/kaniko-project/executor@sha256:30ba460a034a8051b3222a32e20cb6049741e58384e3adf8c8987c004e2f2ab9
File renamed without changes.

0 commit comments

Comments
 (0)