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
44
55RUN apk update && apk add --no-cache libc6-compat curl \
66 && 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 \
88 && chmod +x /var/runtime/mockserver
99
1010ENV 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", \
2323 "-Xshare:auto" , \
2424 "-XX:-TieredCompilation" , \
2525 "-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
44RUN apk --no-cache add curl \
55 && API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
66 && 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 \
88 && chmod +x aws-custom-runtime \
99 && curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/node-10.x \
1010 && 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
44RUN apk --no-cache add curl \
55 && API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
66 && 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 \
88 && chmod +x aws-custom-runtime \
99 && curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/node-4.x \
1010 && 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
44RUN apk --no-cache add curl \
55 && API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
66 && 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 \
88 && chmod +x aws-custom-runtime \
99 && curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/python-2.7 \
1010 && 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 \
55 && apt-get install -y curl \
66 && API_VERSION=$(curl -sI https://github.com/triggermesh/aws-custom-runtime/releases/latest | grep -i "Location:" | awk -F "/" '{print $NF}' | tr -d "\r " ) \
77 && 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 \
99 && chmod +x aws-custom-runtime \
1010 && curl -sL https://github.com/triggermesh/knative-lambda-runtime/archive/${RUNTIME_VERSION}.tar.gz | tar -xz knative-lambda-runtime-${RUNTIME_VERSION}/python-3.7 \
1111 && mv knative-lambda-runtime-${RUNTIME_VERSION}/python-3.7/* .
Original file line number Diff line number Diff line change 11FROM lambci/lambda:ruby2.5
22FROM ruby:2.5-alpine
33WORKDIR /opt
4-
4+
55RUN apk --no-cache add curl \
66 && 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 \
88 && chmod +x aws-custom-runtime
99
1010ENV RUBYLIB "/opt"
1111ENV LAMBDA_TASK_ROOT "/opt"
12-
12+
1313COPY --from=0 /var/runtime/lib /opt
1414RUN 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