Skip to content

link-foundation/js-docker-isolation-provider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

68dbe7c · Oct 6, 2024
Sep 2, 2023
Dec 24, 2021
Dec 14, 2021
Sep 6, 2023
Dec 14, 2021
Mar 23, 2024
Sep 2, 2023
Sep 2, 2023
Jun 15, 2022
Mar 23, 2024
Jul 8, 2024
Feb 23, 2023
Aug 13, 2023
Oct 6, 2024
Oct 6, 2024
Aug 4, 2023

Repository files navigation

Gitpod

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:

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:

docker logs $(docker ps -a -q --filter "ancestor=deepf/js-docker-isolation-provider:main") > log.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published