This repository was archived by the owner on Dec 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ COPY runtime /var/runtime
4
4
5
5
RUN apk update && apk add --no-cache libc6-compat curl \
6
6
&& API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
7
- && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime > /var/runtime/mockserver \
7
+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime-linux-amd64 > /var/runtime/mockserver \
8
8
&& chmod +x /var/runtime/mockserver
9
9
10
10
ENV LD_LIBRARY_PATH /lib64:/usr/lib64:/var/runtime:/var/runtime/lib:/var/task:/var/task/lib:/opt/lib
@@ -23,4 +23,4 @@ ENTRYPOINT ["/usr/bin/java", \
23
23
"-Xshare:auto" , \
24
24
"-XX:-TieredCompilation" , \
25
25
"-jar" , \
26
- "/var/runtime/lib/LambdaJavaRTEntry-1.0.jar" ]
26
+ "/var/runtime/lib/LambdaJavaRTEntry-1.0.jar" ]
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WORKDIR /opt
4
4
RUN apk --no-cache add curl \
5
5
&& API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
6
6
&& RUNTIME_VERSION=$(curl -sI https://github.com/triggermesh/knative-lambda-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
7
- && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime > aws-custom-runtime \
7
+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime-linux-amd64 > aws-custom-runtime \
8
8
&& chmod +x aws-custom-runtime \
9
9
&& curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/node-10.x \
10
10
&& mv knative-lambda-runtime-${RUNTIME_VERSION}/node-10.x/* .
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WORKDIR /opt
4
4
RUN apk --no-cache add curl \
5
5
&& API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
6
6
&& RUNTIME_VERSION=$(curl -sI https://github.com/triggermesh/knative-lambda-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
7
- && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime > aws-custom-runtime \
7
+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime-linux-amd64 > aws-custom-runtime \
8
8
&& chmod +x aws-custom-runtime \
9
9
&& curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/node-4.x \
10
10
&& mv knative-lambda-runtime-${RUNTIME_VERSION}/node-4.x/* .
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ WORKDIR /opt
4
4
RUN apk --no-cache add curl \
5
5
&& API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
6
6
&& RUNTIME_VERSION=$(curl -sI https://github.com/triggermesh/knative-lambda-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
7
- && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime > aws-custom-runtime \
7
+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime-linux-amd64 > aws-custom-runtime \
8
8
&& chmod +x aws-custom-runtime \
9
9
&& curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/python-2.7 \
10
10
&& mv knative-lambda-runtime-${RUNTIME_VERSION}/python-2.7/* .
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ RUN apt-get update \
5
5
&& apt-get install -y curl \
6
6
&& API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
7
7
&& RUNTIME_VERSION=$(curl -sI https://github.com/triggermesh/knative-lambda-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
8
- && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime > aws-custom-runtime \
8
+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime-linux-amd64 > aws-custom-runtime \
9
9
&& chmod +x aws-custom-runtime \
10
10
&& curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/python-3.7 \
11
11
&& mv knative-lambda-runtime-${RUNTIME_VERSION}/python-3.7/* .
Original file line number Diff line number Diff line change 1
1
FROM lambci/lambda:ruby2.5
2
2
FROM ruby:2.5-alpine
3
3
WORKDIR /opt
4
-
4
+
5
5
RUN apk --no-cache add curl \
6
6
&& API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
7
- && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime > aws-custom-runtime \
7
+ && curl -sL https://github.com/triggermesh/aws-custom-runtime/releases/download/${API_VERSION}/aws-custom-runtime-linux-amd64 > aws-custom-runtime \
8
8
&& chmod +x aws-custom-runtime
9
9
10
10
ENV RUBYLIB "/opt"
11
11
ENV LAMBDA_TASK_ROOT "/opt"
12
-
12
+
13
13
COPY --from=0 /var/runtime/lib /opt
14
14
RUN mv /opt/runtime.rb /opt/bootstrap
15
- RUN sed -i /opt/lambda_server.rb -e 's|http://127.0.0.1:9001/2018-06-01|http://127.0.0.1/2018-06-01|'
15
+ RUN sed -i /opt/lambda_server.rb -e 's|http://127.0.0.1:9001/2018-06-01|http://127.0.0.1/2018-06-01|'
You can’t perform that action at this time.
0 commit comments