You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/05 19:09:27 UTC

[GitHub] alexkli commented on issue #23: Publish npm for the nodejsv8 image

alexkli commented on issue #23: Publish npm for the nodejsv8 image
URL: https://github.com/apache/incubator-openwhisk-runtime-nodejs/issues/23#issuecomment-370528641
 
 
   @csantanapr it's not about "inclusion" but about "exclusion" of modules that are provided on the target environment, i.e. the nodejs container.
   
   This is critical if `action.zip` files are size limited on the openwhisk installation (say 1 or 5 MB), and your average npm module tree quickly exceeds those limits.
   
   Using an npm module for this allows for a detailed sharing of the list of "provided' dependencies, including their exact versions. The npm module can be versioned itself to correspond with new versions of the nodejs action docker images.
   
   That npm module would not include any own javascript - just a `package.json` with the depdendencies.
   
   This is especially interesting for the v6 image which has a [lot of useful dependencies](https://github.com/apache/incubator-openwhisk-runtime-nodejs/blob/5c7fd31af362e364116be06729004eecebf33f73/core/nodejs6Action/Dockerfile#L21-L75).

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services