Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/torstendittmann/node-docker-runtime
https://github.com/torstendittmann/node-docker-runtime
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/torstendittmann/node-docker-runtime
- Owner: TorstenDittmann
- Created: 2021-08-04T12:57:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T12:01:39.000Z (2 months ago)
- Last Synced: 2024-10-19T04:29:14.353Z (2 months ago)
- Language: JavaScript
- Size: 20.5 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}
}
```