Open expertneo opened 7 months ago
The workaround mentioned in https://github.com/aws/aws-lambda-nodejs-runtime-interface-client/issues/68#issuecomment-1571877109 worked for me.
The workaround mentioned in #68 (comment) worked for me.
I tried the same but it gave me multiple errors (mainly something like below)
84.07 npm ERR! /app/node_modules/aws-lambda-ric/deps/aws-lambda-cpp-0.2.8/src/backward.h:1295:25: error: request for member 'dli_fname' in 'symbol_info', which is of non-class type 'int'
84.07 npm ERR! 1295 | if (symbol_info.dli_fname == argv0_) {
84.07 npm ERR! | ^~~~~~~~~
Dockerfile builder stage for me looks like below:
ARG FUNCTION_DIR="/app"
#*****************************************************************************
# Builder Stage
#****************************************************************************/
FROM node:20-alpine3.17 AS build-image
ARG FUNCTION_DIR
WORKDIR ${FUNCTION_DIR}
RUN apk update && apk add --no-cache \
build-base \
g++ \
git \
libtool \
autoconf \
automake \
make \
cmake \
elfutils-dev \
python3
RUN apk add --no-cache --update --repository=https://dl-cdn.alpinelinux.org/alpine/v3.16/main libexecinfo-dev
# Copy function code
RUN mkdir -p ${FUNCTION_DIR}
COPY . ${FUNCTION_DIR}
WORKDIR ${FUNCTION_DIR}
# Install Node.js dependencies
RUN npm install
RUN npm install aws-lambda-ric
I have same issue with
Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
This is affecting me as well, and the linked workaround is not working for me.. @andclt @briensea is this something you can help with or pull in the right parties?
Alpine is explicitly called out as being supported.
Issue is affecting me as well. It seems libbacktrace has been made optional from aws-lambda-cpp 0.2.9 to solve this exact issue.
Dear Experts,
I would like to draw your attention to (or seek for help about) an issue we are having right now: Having "RUN npm i aws-lambda-ric" latest or anything down to 1.1.0 in Dockerfile would give the error below.
Any help would be appreciated.
Thanks and regards, Ben