Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issues with node:16.20.0-alpine3.17 #68

Open
USSliberty opened this issue May 26, 2023 · 1 comment
Open

Build issues with node:16.20.0-alpine3.17 #68

USSliberty opened this issue May 26, 2023 · 1 comment

Comments

@USSliberty
Copy link

Hello, I am using this dockerfile configuration:

FROM node:16.20.0-alpine3.17@sha256:0ac2f8cba4274f3aeeb8dd2cde7714fe746b917df68a79eb9b4d5de053c5aa53 AS build

ARG FUNCTION_DIR
USER root
RUN apk --update --no-cache add \
    elfutils-dev \
    cmake \
    curl-dev \
    autoconf \
    automake \
    libtool \
    python3 \
    gcc \
    make \
    g++ \
    zlib-dev\
    binutils-dev\
    unzip
ARG PHANTOMJS_VERSION
RUN wget -qO- "https://github.com/dustinblackman/phantomized/releases/download/${PHANTOMJS_VERSION}/dockerized-phantomjs.tar.gz" | tar xz -C /
ENV NODE_ENV=production
ENV PYTHON=/usr/bin/python3
RUN mkdir -p ${FUNCTION_DIR}
WORKDIR ${FUNCTION_DIR}
COPY package.json yarn.lock ./
RUN yarn --frozen-lockfile --production && yarn add aws-lambda-ric@2.1.0 && rm -rf ${FUNCTION_DIR}/node_modules/aws-sdk/dist/ && rm -rf node_modules/rxjs/{src,bundles,_esm5,_esm2015}/ && chown -R root:root ${FUNCTION_DIR}/node_modules

However this error appears during the compiling:

#0 168.5 make[6]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1/docs/libcurl'
#0 168.5 make[5]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1/docs/libcurl'
#0 168.5 make[4]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1/docs/libcurl'
#0 168.5 make[3]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1'
#0 168.5 make[2]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1'
#0 168.5 make[1]: Leaving directory '/opt/example/node_modules/aws-lambda-ric/deps/curl-curl-7_83_1'
#0 168.5 -- The CXX compiler identification is GNU 12.2.1
#0 168.5 -- Detecting CXX compiler ABI info
#0 168.5 -- Detecting CXX compiler ABI info - done
#0 168.5 -- Check for working CXX compiler: /usr/bin/c++ - skipped
#0 168.5 -- Detecting CXX compile features
#0 168.5 -- Detecting CXX compile features - done
#0 168.5 -- Found CURL: /usr/lib/libcurl.so (found version "8.1.1")
#0 168.5 -- Looking for backtrace
#0 168.5 -- Looking for backtrace - not found
#0 168.5 CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
#0 168.5   Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
#0 168.5 Call Stack (most recent call first):
#0 168.5   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
#0 168.5   /usr/share/cmake/Modules/FindBacktrace.cmake:90 (find_package_handle_standard_args)
#0 168.5   CMakeLists.txt:44 (find_package)
#0 168.5
#0 168.5
#0 168.5 -- Configuring incomplete, errors occurred!
#0 168.5 See also "/opt/example/node_modules/aws-lambda-ric/deps/aws-lambda-cpp-0.2.8/build/CMakeFiles/CMakeOutput.log".
#0 168.5 See also "/opt/example/node_modules/aws-lambda-ric/deps/aws-lambda-cpp-0.2.8/build/CMakeFiles/CMakeError.log".
------
Dockerfile:36
--------------------
  34 |     WORKDIR ${FUNCTION_DIR}
  35 |     COPY package.json yarn.lock ./
  36 | >>> RUN yarn --frozen-lockfile --production && yarn add aws-lambda-ric@2.1.0 && rm -rf ${FUNCTION_DIR}/node_modules/aws-sdk/dist/ && rm -rf node_modules/rxjs/{ss
  37 |
  38 |     #
--------------------
ERROR: failed to solve: process "/bin/sh -c yarn --frozen-lockfile --production && yarn add aws-lambda-ric@2.1.0 && rm -rf ${FUNCTION_DIR}/node_modules/aws-sdk/dist/ &1

I am missing some other dependencies? I couldn't find any clue about.

@USSliberty USSliberty changed the title Compliation issues with node:16.20.0-alpine3.17 Build issues with node:16.20.0-alpine3.17 May 26, 2023
@AlexeyMoiseev
Copy link

The same for me. elfutils-dev is not a full replacer for libexecinfo-dev. Current workaround:
apk add --no-cache --update --repository=https://dl-cdn.alpinelinux.org/alpine/v3.16/main/ libexecinfo-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants