Error during docker build
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- docker, javascript, node.js, webpack
- 领域
- build-system, devops
调研方向
从 deployments/build.sh 和 npm run build 入口开始,然后检查 webpack.prod.js 以及 buildpack 使用的 Node.js 版本。使用 Node 18 重现 ERR_OSSL_EVP_UNSUPPORTED 错误。当 Docker 构建和本地 npm run build 在 Node 18 上均能成功完成且不出现此错误时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I use the script available in deployments/build.sh to build a docker image with the current version of the develop branch and I get the following error:
Error message
+ npm run build
138.7
138.7 > [email protected] build
138.7 > webpack --config webpack.prod.js --display errors-only -p
138.7
139.7 node:internal/crypto/hash:71
139.7 this[kHandle] = new _Hash(algorithm, xofLen);
139.7 ^
139.7
139.7 Error: error:0308010C:digital envelope routines::unsupported
139.7 at new Hash (node:internal/crypto/hash:71:19)
139.7 at Object.createHash (node:crypto:133:10)
139.7 at module.exports (/home/hackmd/app/node_modules/webpack/lib/util/createHash.js:135:53)
139.7 at NormalModule._initBuildHash (/home/hackmd/app/node_modules/webpack/lib/NormalModule.js:412:16)
139.7 at handleParseError (/home/hackmd/app/node_modules/webpack/lib/NormalModule.js:463:10)
139.7 at /home/hackmd/app/node_modules/webpack/lib/NormalModule.js:495:5
139.7 at /home/hackmd/app/node_modules/webpack/lib/NormalModule.js:354:12
139.7 at /home/hackmd/app/node_modules/loader-runner/lib/LoaderRunner.js:373:3
139.7 at iterateNormalLoaders (/home/hackmd/app/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
139.7 at Array.<anonymous> (/home/hackmd/app/node_modules/loader-runner/lib/LoaderRunner.js:205:4)
139.7 at Storage.finished (/home/hackmd/app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:55:16)
139.7 at /home/hackmd/app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:91:9
139.7 at /home/hackmd/app/node_modules/graceful-fs/graceful-fs.js:90:16
139.7 at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read_file_context:68:3) {
139.7 opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
139.7 library: 'digital envelope routines',
139.7 reason: 'unsupported',
139.7 code: 'ERR_OSSL_EVP_UNSUPPORTED'
139.7 }
139.7
139.7 Node.js v18.16.0
I used the following command to launch the build: ./build.sh hackmdio/runtime:18.16.0-f5fd28b4 hackmdio/buildpack:18.16.0-f5fd28b4
using buildpack for node 18
I also get the same error when I run the npm run build command locally with Node 18.
- 主要语言
- JavaScript
- 星标
- 10.2k
- 派生
- 1.1k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
hackmdio/codimd 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 3/5 1-2 天 新手友好度 48/100
-
unable to login未关闭
难度 2/5 1-3 小时 新手友好度 28/100
-
难度 3/5 1-2 天 新手友好度 45/100
-
edu-hub未关闭
难度 5/5 一周以上 新手友好度 20/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
EmulatorJS/EmulatorJS#1317 ·
维护者通常 2 天内回复
-
area:server area:tests
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
WenyuChiou/agent-board#1993 ·
维护者通常 1 天内回复
-
attività categoria:infrastruttura e automazione documento:analisi dei requisiti ruolo:analista specchio stato:nuova
难度 2/5 1-3 小时 新手友好度 68/100
BitCrusher-Team/Progetto_SWE_26-27#116 ·
维护者通常 1 天内回复
-
bug design
难度 1/5 1 小时以内 新手友好度 92/100
Colorado-Startups/coloradostartups.org#147 ·
维护者通常 1 天内回复