NodeJS Function Run Container

First cut of a function run container for NodeJS. So far, just the
simplest stuff: loads a user function and routes requests to it. The
user function is assumed to be in a file at a provided location. The
fission runtime is expected to place the file there securely (exactly
how we'll do that is TBD).

Doesn't handle path template params, query strings, etc. Will also
need to be extended later with some sort of hook for graceful
shutdown.
This commit is contained in:
Soam Vasani
2016-08-23 17:23:20 -07:00
parent be0556f5e0
commit 67be5a7b10
3 changed files with 107 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
{
"name": "fission-nodejs-runtime",
"version": "0.0.0",
"author": "Soam Vasani",
"contributors": [
{
"name": "Soam Vasani",
"email": "soamvasani@platform9.com"
}
],
"description": "NodeJS run container for the fission framework",
"engines": {
"node": ">=4.2.2"
},
"dependencies": {
"express": "",
"minimist": "",
"body-parser": "",
"require-from-string": ""
},
"start": "node server.js --codepath '/fission/function' --port 8888"
}