Skip to content

Resolve "Implement REST endpoints related to containers"

With this PR, we have 3 new endpoints:

GET /gpu/devices:

This is very similar to the same endpoint we created for SPO use case, instead of cardano, it searches for devices which has has_gpu metadata.

POST /gpu/deploy/:nodeID:

This endpoint takes in a JSON body and sends that JSON body to the provider machine. The schema of JSON body is not yet defined. We need to have a fixed schema before going into production.

GET /gpu/deploy/receive:

When this endpoint is hit, a sequence is run to pull the image, create and run the container, after container is finished running, it takes the output and sends to the requester (last part is still a stub as of now).

Closes #43 (closed)

Merge request reports