Error during docker build
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Accessibilité débutants
- 45/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- docker, javascript, node.js, webpack
- Domaine
- build-system, devops
Piste de recherche
Commencez par deployments/build.sh et le point d’entrée npm run build, puis examinez webpack.prod.js et la version de Node.js utilisée par le buildpack. Reproduisez l’erreur ERR_OSSL_EVP_UNSUPPORTED avec Node 18. La tâche est terminée lorsque le build Docker et npm run build en local s’exécutent correctement avec Node 18 sans cette erreur.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- JavaScript
- Étoiles
- 10.2k
- Forks
- 1.1k
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.
- Aucun Dockerfile ni fichier Docker Compose
- Aucun modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de hackmdio/codimd
-
Difficulté 2/5 1-3 heures Accessibilité débutants 72/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 48/100
-
unable to loginOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 28/100
-
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
-
edu-hubOuverte
Difficulté 5/5 Plus d'une semaine Accessibilité débutants 20/100
Toutes les issues de hackmdio/codimd
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 78/100
MetaMask/eth-phishing-detect#317371 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue help wanted
Difficulté 2/5 1-3 heures Accessibilité débutants 88/100
erkamyaman/safe-anything#262 ·
Les mainteneurs répondent en général sous 1 jour
-
free_port can hand one port to two callers, so the fixed-port http tests fail in parallel runsOuverte
Difficulté 2/5 1-3 heures Accessibilité débutants 92/100
erkamyaman/rust-anything#963 ·
Les mainteneurs répondent en général sous 1 jour
-
good first issue
Difficulté 1/5 Moins d'une heure Accessibilité débutants 95/100
brystmar/breadsheet-ui#78 ·
Les mainteneurs répondent en général sous 1 jour
-
enhancement good first issue
Difficulté 2/5 1-3 heures Accessibilité débutants 84/100