https://github.com/konard/deep-foundation-js-docker-isolation-provider
https://github.com/konard/deep-foundation-js-docker-isolation-provider
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/konard/deep-foundation-js-docker-isolation-provider
- Owner: Konard
- License: unlicense
- Created: 2021-12-24T07:34:30.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-20T18:33:40.000Z (10 months ago)
- Last Synced: 2025-03-26T08:37:29.675Z (about 2 months ago)
- Language: TypeScript
- Size: 6.09 MB
- Stars: 0
- Watchers: 1
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://gitpod.io/#https://github.com/deep-foundation/js-docker-isolation-provider)
# js-docker-isolation-provider
## HTTP routes
- `/healthz` - GET - 200 - Health check endpoint
- Response:
- `{}`
- `/init` - GET - 200 - Initialization endpoint
- Response:
- `{}`
- `/call` - GET - 200 - Call executable code of handler in this isolation provider (it used in HandleInsert, HandleUpdate, HandleDelete and so on)
- Request:
- body:
- params:
- jwt: STRING - Deeplinks send this token, for create gql and deep client
- secret: STRING - Secret to access Hasura in unsafe mode (if package/user are allowed to use it by permissions)
- code: STRING - Code of handler
- data: {} - Data for handler execution from deeplinks
> If this is type handler
- oldLink - from deeplinks, link before transaction
- newLink - from deeplinks, link after transaction
- promiseId - from deeplinks, promise id
- Response:
- `{ resolved?: any; rejected?: any; }` - If resolved or rejected is not null, then it's result of execution
- `/http-call` - GET - 200 - Call executable code of handler in this isolation provider to produce the http responce (it is used in HandleRoute)
- Request:
- Headers:
- `deep-call-options`
- jwt: STRING - Deeplinks send this token, for create gql and deep client
- secret: STRING - Secret to access Hasura in unsafe mode (if package/user are allowed to use it by permissions)
- code: STRING - Code of handler
- data: {} - Data for handler execution from deeplinks
> If this is type handler
- oldLink - from deeplinks, link before transaction
- newLink - from deeplinks, link after transaction
- promiseId - from deeplinks, promise id
- Responce:
- Http responce generated by code if execution is successful
- `{ rejected: any; }` - on error
## Diagnostics### Logs
#### Get container logs to console:
```bash
docker logs $(docker ps -a -q --filter "ancestor=deepf/js-docker-isolation-provider:main")
```#### Get container logs to file:
Sometimes console cannot output the full logs so it might be helpful to store the entire container's logs as file. It can be done like this:
```bash
docker logs $(docker ps -a -q --filter "ancestor=deepf/js-docker-isolation-provider:main") > log.txt
```