This repository has been archived by the owner on Dec 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Python, NodeJS and Ruby to the latest AWS Lambda versions
- Loading branch information
1 parent
ec0bfa4
commit 279c4de
Showing
8 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Dockerfile | ||
.dockerignore | ||
|
||
**/*.md | ||
**/.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM alpine as downloader | ||
|
||
RUN apk --no-cache add curl \ | ||
&& DOWNLOAD_URL=$(curl -sSf https://api.github.com/repos/triggermesh/aws-custom-runtime/releases/latest | grep "browser_download_url.*-linux-amd64" | cut -d: -f 2,3 | tr -d \") \ | ||
&& curl -sSfL ${DOWNLOAD_URL} -o /opt/aws-custom-runtime \ | ||
&& chmod +x /opt/aws-custom-runtime | ||
|
||
FROM amazon/aws-lambda-nodejs:18 | ||
|
||
WORKDIR /opt | ||
|
||
RUN mv /var/runtime/bootstrap /opt | ||
|
||
COPY --from=downloader /opt/aws-custom-runtime /opt/ | ||
|
||
ENV LAMBDA_TASK_ROOT "/opt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Dockerfile | ||
.dockerignore | ||
|
||
**/*.md | ||
**/.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
FROM alpine as downloader | ||
|
||
RUN apk --no-cache add curl git \ | ||
&& DOWNLOAD_URL=$(curl -sSf https://api.github.com/repos/triggermesh/aws-custom-runtime/releases/latest | grep "browser_download_url.*-linux-amd64" | cut -d: -f 2,3 | tr -d \") \ | ||
&& curl -sSfL ${DOWNLOAD_URL} -o /opt/aws-custom-runtime \ | ||
&& chmod +x /opt/aws-custom-runtime \ | ||
&& git clone https://github.com/triggermesh/eventstore-python-client.git /opt/client | ||
|
||
FROM amazon/aws-lambda-python:3.10 | ||
|
||
WORKDIR /opt | ||
|
||
RUN pip install --upgrade pip \ | ||
&& pip install grpcio grpcio-tools | ||
|
||
RUN mv /var/runtime/bootstrap /opt | ||
|
||
COPY --from=downloader /opt/client/eventstore /opt/eventstore | ||
COPY --from=downloader /opt/aws-custom-runtime /opt/ | ||
|
||
ENV PYTHONPATH "/opt/eventstore" | ||
ENV LAMBDA_TASK_ROOT "/opt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Dockerfile | ||
.dockerignore | ||
|
||
**/*.md | ||
**/.gitignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM alpine as downloader | ||
|
||
RUN apk --no-cache add curl \ | ||
&& DOWNLOAD_URL=$(curl -sSf https://api.github.com/repos/triggermesh/aws-custom-runtime/releases/latest | grep "browser_download_url.*-linux-amd64" | cut -d: -f 2,3 | tr -d \") \ | ||
&& curl -sSfL ${DOWNLOAD_URL} -o /opt/aws-custom-runtime \ | ||
&& chmod +x /opt/aws-custom-runtime | ||
|
||
FROM amazon/aws-lambda-ruby:3.2 | ||
|
||
WORKDIR /opt | ||
|
||
RUN mv /var/runtime/bootstrap /opt | ||
|
||
COPY --from=downloader /opt/aws-custom-runtime /opt/ | ||
|
||
ENV RUBYLIB "/opt" | ||
ENV LAMBDA_TASK_ROOT "/opt" |