From 4f9ffa9f3a7aa1cc693db635fd3b65fff8fda709 Mon Sep 17 00:00:00 2001 From: tzununbekov Date: Thu, 26 Nov 2020 13:30:00 +0600 Subject: [PATCH] Go runtime conflicting binaries fixed --- go/runtime.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/runtime.yaml b/go/runtime.yaml index 540a43c..e09bef2 100644 --- a/go/runtime.yaml +++ b/go/runtime.yaml @@ -48,6 +48,7 @@ spec: && go get github.com/triggermesh/aws-custom-runtime \ && go get github.com/triggermesh/knative-lambda-runtime/go \ && go get github.com/golang/dep/... + RUN mv /go/bin/go /go/bin/bootstrap WORKDIR /go/src/handler COPY . . RUN if [ -f "$HOME/.ssh/id_$(inputs.params.SSH_KEY)" ]; then \ @@ -63,7 +64,6 @@ spec: ENV LAMBDA_TASK_ROOT "/opt" ENV _HANDLER "handler" COPY --from=0 /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ - COPY --from=0 /go/bin/go /opt/bootstrap COPY --from=0 /go/bin/ /opt ENTRYPOINT ["/opt/aws-custom-runtime"] EOF