There is a index-provider/docker-compose.yml provided that sets up one head node and one worker node.
- Have an available image of the
upshot-compute-node, and reference it as a base on theFROMof theDockerfile. - Create a set of keys in the
keysdirectory for your head and worker, and use them in the head and worker configuration(volume mapping already provided indocker-compose.ymlfile). If no keys are specified in the volumes, new keys are created. However, the worker will need to specify thepeer_idof the head for defining it as aBOOT_NODES. You can bring head up first, get the key from the container, then use it in theBOOT_NODES. More info in the b7s-docker-compose repo. - Provide a valid
UPSHOT_API_TOKENenv var.
Once this is set up, run docker compose -f index-provider/docker-compose.yml up
Upshot team uses a universal-helm chart to deploy applications into kubernetes clusters.
There is a index-provider/values.yaml provided that sets up one head node and one worker node.
- You need to have configured
kubeconfigfile on the computer to connect to the cluster and deploy the node.
- Add upshot Helm chart repo:
helm repo add upshot https://upshot-tech.github.io/helm-charts
- Install helm chart with the given values file:
helm install \
index-provider \
upshot/universal-helm \
-f index-provider/values.yamlOnce both nodes are up, a function can be tested by hitting:
curl --location 'http://localhost:6000/api/v1/functions/execute' --header 'Accept: application/json, text/plain, */*' --header 'Content-Type: application/json;charset=UTF-8' --data '{
"function_id": "bafybeifcwnj2hyxigjhtxoqqoei54favlgttmxc5fbuxuq5rrlw4g7kt6q",
"method": "upshot-function-example.wasm",
"config": {
"env_vars": [
{
"name": "BLS_REQUEST_PATH",
"value": "/api"
},
{
"name": "UPSHOT_ARG_PARAMS",
"value": "yuga"
}
],
"number_of_nodes": 1
}
}'
- Create a set of keys and initialise genesis, see example in
appchain/init.sh. - Provide a valid
$_AI_PROVIDER_NODE_and$_AI_PROVIDER_NODE_FUNCTION_IDenv var.
There is a appchain/docker-compose.yml provided that sets up one head node and one worker node.
Once this is set up, run docker compose -f appchain/docker-compose.yml up
Upshot team uses a universal-helm chart to deploy applications into kubernetes clusters.
There is a index-provider/values.yaml provided that sets up one head node and one worker node.
- You need to have configured
kubeconfigfile on the computer to connect to the cluster and deploy the node.
- Add upshot Helm chart repo:
helm repo add upshot https://upshot-tech.github.io/helm-charts
- Install helm chart with the given values file:
helm install \
index-provider \
upshot/universal-helm \
-f appchain/values.yamlTBD