Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/torstendittmann/node-docker-runtime


https://github.com/torstendittmann/node-docker-runtime

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# usage

```bash
docker build -t node-runtime .
```

```bash
docker run -p 3000:3000 -v /your_code/path:/usr/code node-runtime
```

# request

Requests can be done to any url on the choosen port.

For an execution we need to perform a POST request with its body containing all necessary informations.

## request body

```json
{
"path": "/usr/code",
"file": "index.js",

// following will be exposed to the function
"env": {
// env variables
},
"payload": {
// payload
},
"headers": {
// headers
}
}
```