endel / increase-memory-limit

Increase memory limit for local node binaries ("max-old-space-size")
http://npmjs.com/package/increase-memory-limit
MIT License
269 stars 26 forks source link

Docker image build process stuck even process should be finished long long time ago #15

Closed tom10271 closed 6 years ago

tom10271 commented 6 years ago

My build command: "build": "npm run cleanup && npm run fix-memory-limit && NODE_ENV=production node_modules/.bin/webpack --config webpack.config.js -p",

> cross-env LIMIT=2048 increase-memory-limit

'node_modules/.bin/acorn' written successfully.
'node_modules/.bin/atob' written successfully.
'node_modules/.bin/babylon' written successfully.
'node_modules/.bin/browserslist' written successfully.
'node_modules/.bin/cdl' written successfully.
'node_modules/.bin/cssesc' written successfully.
'node_modules/.bin/csso' written successfully.
'node_modules/.bin/errno' written successfully.
'node_modules/.bin/esparse' written successfully.
'node_modules/.bin/esvalidate' written successfully.
'node_modules/.bin/he' written successfully.
'node_modules/.bin/html-minifier' written successfully.
'node_modules/.bin/in-install' written successfully.
'node_modules/.bin/in-publish' written successfully.
'node_modules/.bin/js-yaml' written successfully.
'node_modules/.bin/jsesc' written successfully.
'node_modules/.bin/json5' written successfully.
'node_modules/.bin/loose-envify' written successfully.
'node_modules/.bin/miller-rabin' written successfully.
'node_modules/.bin/mime' written successfully.
'node_modules/.bin/mkdirp' written successfully.
'node_modules/.bin/ng-xi18n' written successfully.
'node_modules/.bin/ngc' written successfully.
'node_modules/.bin/node-gyp' written successfully.
'node_modules/.bin/node-sass' written successfully.
'node_modules/.bin/nopt' written successfully.
'node_modules/.bin/not-in-install' written successfully.
'node_modules/.bin/not-in-publish' written successfully.
'node_modules/.bin/optimize-js' written successfully.
'node_modules/.bin/prebuild-install' written successfully.
'node_modules/.bin/rc' written successfully.
'node_modules/.bin/regjsparser' written successfully.
'node_modules/.bin/rimraf' written successfully.
'node_modules/.bin/sassgraph' written successfully.
'node_modules/.bin/semver' written successfully.
'node_modules/.bin/sha.js' written successfully.
'node_modules/.bin/sifter' written successfully.
'node_modules/.bin/sshpk-conv' written successfully.
'node_modules/.bin/sshpk-sign' written successfully.
'node_modules/.bin/sshpk-verify' written successfully.
'node_modules/.bin/strip-indent' written successfully.
'node_modules/.bin/svgo' written successfully.
'node_modules/.bin/tsc' written successfully.
'node_modules/.bin/tsickle' written successfully.
'node_modules/.bin/tsserver' written successfully.
'node_modules/.bin/uglifyjs' written successfully.
'node_modules/.bin/uuid' written successfully.
'node_modules/.bin/webpack' written successfully.
'node_modules/.bin/which' written successfully.

// It just stop there but not proceeding to webpack build process
tom10271 commented 6 years ago

This plugin makes all commands inside root dir of the project stop sending finish signal to system making docker build process stuck even you split command into lines.

tom10271 commented 6 years ago

Docker image building process resume normal after removing this plugin.....Disappointing

rwdalpe commented 6 years ago

Probably because of #2

endel commented 6 years ago

This library has been deprecated. Please use Node.js v8+ and set NODE_OPTIONS environment variable. (https://github.com/endel/increase-memory-limit#deprecation-notice)