node:16-alpine with aws-lambda-ric docker build fails
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 静か
- 技術スタック
- aws, docker, node.js, typescript
- 領域
- build-system, cloud, devops
調査の方向性
node:16-alpine3.18 上の Dockerfile の RUN npm install aws-lambda-ric ステップから始めて、preinstall の失敗を再現します。Backtrace_LIBRARY と Backtrace_INCLUDE_DIR が見つからないという CMake エラーを追跡します。完了条件は、報告されたイメージで aws-lambda-ric のインストールが正常に完了することです。
索引モデルが 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.
ARG FUNCTION_DIR="/app"
#*****************************************************************************
# Builder Stage
#****************************************************************************/
FROM node:16-alpine3.18 AS base
# Include global arg in this stage of the build
ARG FUNCTION_DIR
# The working directory is where "npm install" created the node_modules folder.
WORKDIR ${FUNCTION_DIR}
# Install aws-lambda-cpp build dependencies. aws-lambda-cpp is used by aws-lambda-ric which is a
# node-gyp compiled dependency. Find it in package.json.
# See the Node.js example at https://github.com/aws/aws-lambda-nodejs-runtime-interface-client
RUN apk update && apk add --no-cache \
build-base \
libtool \
autoconf \
automake \
make \
cmake \
libcurl \
elfutils-dev \
python3
# Copy dependencies
COPY package*.json ./
# Install Node.js dependencies
RUN npm ci
# Install the AWS Lambda Runtime Interface Client (RIC) that is only required within this Docker container (not in package.json on development machine).
# It helps AWS to run the Lambda function code that autoiXpert provides.
RUN npm install aws-lambda-ric
COPY src/main ./
#*****************************************************************************
# Production Stage
#****************************************************************************/
FROM node:16-alpine3.18
# Include global arg in this stage of the build
ARG FUNCTION_DIR
# The working directory is where "npm install" created the node_modules folder.
WORKDIR ${FUNCTION_DIR}
# Update packages causing vulnerability
RUN apk update && apk upgrade --no-cache libcrypto3 libssl3
COPY --from=base app/dist ${LAMBDA_TASK_ROOT}
ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric"]
CMD [ "app.lambdaHandler" ]
=> [base 10/13] RUN npm ci 318.1s
=> ERROR [base 11/13] RUN npm install aws-lambda-ric 91.8s
------
> [base 11/13] RUN npm install aws-lambda-ric:
#16 91.71 npm ERR! code 1
#16 91.71 npm ERR! path /app/node_modules/aws-lambda-ric
#16 91.71 npm ERR! command failed
#16 91.71 npm ERR! command sh -c -- ./scripts/preinstall.sh
#16 91.71 npm ERR! libtoolize: putting auxiliary files in '.'.
#16 91.71 npm ERR! libtoolize: copying file './ltmain.sh'
#16 91.71 npm ERR! libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
#16 91.71 npm ERR! libtoolize: copying file 'm4/libtool.m4'
#16 91.71 npm ERR! libtoolize: copying file 'm4/ltoptions.m4'
#16 91.71 npm ERR! libtoolize: copying file 'm4/ltsugar.m4'
#16 91.71 npm ERR! libtoolize: copying file 'm4/ltversion.m4'
#16 91.71 npm ERR! libtoolize: copying file 'm4/lt~obsolete.m4'
#16 91.72 npm ERR! libtoolize: Remember to add 'LT_INIT' to configure.ac.
#16 91.72 npm ERR! checking whether to enable maintainer-specific portions of Makefiles... no
#16 91.72 npm ERR! checking whether make supports nested variables... yes
#16 91.72 npm ERR! checking whether to enable debug build options... no
.
.
.
.
.
#16 91.81 npm ERR! parallel-tests: installing './test-driver'
#16 91.81 npm ERR! configure: WARNING: zlib disabled
#16 91.81 npm ERR! configure: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more.
#16 91.81 npm ERR! configure: WARNING: Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this.
#16 91.81 npm ERR! configure: WARNING: libgsasl was not found
#16 91.81 npm ERR! configure: WARNING: disabling built-in manual
#16 91.81 npm ERR! CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
#16 91.81 npm ERR! Could NOT find Backtrace (missing: Backtrace_LIBRARY Backtrace_INCLUDE_DIR)
#16 91.81 npm ERR! Call Stack (most recent call first):
#16 91.81 npm ERR! /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
#16 91.81 npm ERR! /usr/share/cmake/Modules/FindBacktrace.cmake:90 (find_package_handle_standard_args)
#16 91.81 npm ERR! CMakeLists.txt:44 (find_package)
#16 91.81
#16 91.81 npm ERR! A complete log of this run can be found in:
#16 91.81 npm ERR! /root/.npm/_logs/2023-11-23T16_18_49_501Z-debug-0.log
------
executor failed running [/bin/sh -c npm install aws-lambda-ric]: exit code: 1
Any help would be appreciated.
Thanks and regards,
Ben
- 主要言語
- TypeScript
- スター
- 224
- フォーク
- 60
- 平均マージ
- 26分
- マージ済み PR(30日)
- 2
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aws/aws-lambda-nodejs-runtime-interface-client のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
aws/aws-lambda-nodejs-runtime-interface-client#198 · コメント 3 件 · リアクション 6 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
aws/aws-lambda-nodejs-runtime-interface-client#195 · リアクション 12 件 ·
-
bug
aws/aws-lambda-nodejs-runtime-interface-client#170 · コメント 15 件 · リアクション 6 件 · 担当者 1 名 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 38/100
aws/aws-lambda-nodejs-runtime-interface-client#159 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
aws/aws-lambda-nodejs-runtime-interface-client#145 · コメント 1 件 · リアクション 6 件 ·
aws/aws-lambda-nodejs-runtime-interface-client の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
calcite-components needs triage refactor
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Esri/calcite-design-system#15203 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
danielmiessler/LifeOS#2218 ·