requesting changes in readme.md

未關閉
#40 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
1/5
預估耗時
1 小時以內
新手友好度
45/100
Issue 類型
文件
描述清晰度
描述清楚
活躍度
停滯
技術堆疊
docker, node.js

研究方向

開啟 README.md,找到包含 COPY --from=build-image 步驟的多階段 Docker 範例。將其與回報的 DEPLOYABLE 階段進行比較,包括其 ARG、WORKDIR、ENTRYPOINT 和 CMD;如果回報的方法適當,便更新該範例,並驗證文件中的建置與啟動流程是否一致。

由索引模型根據 Issue 內容生成。

描述

documentation

In the multistage docker script, these didn't work for me:

# Copy in the built dependencies
COPY --from=build-image ${FUNCTION_DIR} ${FUNCTION_DIR}

Doing the above resulted in:

Error: Error loading shared library libnghttp2.so.14: No such file or directory (needed by /runnable/node_modules/aws-lambda-ric/build/Release/runtime-client.node)

What worked for me is:

...

FROM build-image AS DEPLOYABLE

# Include global arg in this stage of the build
ARG FUNCTION_DIR

# Set working directory to function root directory
WORKDIR ${FUNCTION_DIR}

ENTRYPOINT ["/usr/local/bin/npx", "aws-lambda-ric"]
CMD ["app.handler"]

You might consider changing the README to use that instead?

Thanks!
Bryan

主要語言
TypeScript
星號
224
分支
60
平均合併
26 分鐘
30 天內合併 PR
2

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

aws/aws-lambda-nodejs-runtime-interface-client 的其他 Issue

查看 aws/aws-lambda-nodejs-runtime-interface-client 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。