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

Commit aabed7c

Browse files
committed
Go build removed, #2
Signed-off-by: tzununbekov <t.zununbekov@gmail.com>
1 parent b59dad1 commit aabed7c

File tree

2 files changed

+12
-14
lines changed

2 files changed

+12
-14
lines changed

python-2.7/buildtemplate.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,18 @@ spec:
3838
- |
3939
cd /workspace/${DIRECTORY}
4040
cat <<EOF > Dockerfile
41-
FROM golang
42-
RUN CGO_ENABLED=0 go get github.com/triggermesh/aws-custom-runtime
43-
RUN git clone https://github.com/triggermesh/aws-python-runtime
44-
4541
FROM python:2.7-alpine
46-
4742
WORKDIR /opt
4843
44+
RUN apk --no-cache add curl \
45+
&& curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/0.0.1/aws-custom-runtime > aws-custom-runtime \
46+
&& chmod +x aws-custom-runtime \
47+
&& curl -sL https://github.com/triggermesh/aws-python-runtime/archive/0.0.1.tar.gz | tar -xz aws-python-runtime-0.0.1/python-2.7 \
48+
&& mv aws-python-runtime-0.0.1/python-2.7/* .
49+
4950
ENV LAMBDA_TASK_ROOT "/opt"
5051
ENV _HANDLER "${HANDLER}"
5152
52-
COPY --from=0 /go/bin/aws-custom-runtime .
53-
COPY --from=0 /go/aws-python-runtime/python-2.7/ .
5453
COPY . .
5554
5655
ENTRYPOINT ["/opt/aws-custom-runtime"]

python-3.7/buildtemplate.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,18 @@ spec:
3838
- |
3939
cd /workspace/${DIRECTORY}
4040
cat <<EOF > Dockerfile
41-
FROM golang
42-
RUN CGO_ENABLED=0 go get github.com/triggermesh/aws-custom-runtime
43-
RUN git clone https://github.com/triggermesh/aws-python-runtime
44-
4541
FROM python:alpine3.7
46-
4742
WORKDIR /opt
4843
44+
RUN apk --no-cache add curl \
45+
&& curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/0.0.1/aws-custom-runtime > aws-custom-runtime \
46+
&& chmod +x aws-custom-runtime \
47+
&& curl -sL https://github.com/triggermesh/aws-python-runtime/archive/0.0.1.tar.gz | tar -xz aws-python-runtime-0.0.1/python-3.7 \
48+
&& mv aws-python-runtime-0.0.1/python-3.7/* .
49+
4950
ENV LAMBDA_TASK_ROOT "/opt"
5051
ENV _HANDLER "${HANDLER}"
5152
52-
COPY --from=0 /go/bin/aws-custom-runtime .
53-
COPY --from=0 /go/aws-python-runtime/python-3.7/ .
5453
COPY . .
5554
5655
ENTRYPOINT ["/opt/aws-custom-runtime"]

0 commit comments

Comments
 (0)