id | title | slug | sidebar_position |
---|---|---|---|
quick_guide |
Quick Deployment Guide |
/cli_guides/quick_guide |
2 |
This quick guide will take you step by step through deploying a solution and data on Super Protocol. Its purpose is to introduce you to the logic and sequence of the CLI commands. For more details, refer to the Deployment Guides and the examples in the descriptions of each command.
To prepare a solution for the execution inside a Trusted Execution Environment, pack and sign it with Gramine. To do this, run the solutions prepare
command.
It will create a TAR.GZ archive with the solution and a JSON file with essential metadata.
Run the files upload
command using the TAR.GZ archive from the previous step.
The command will create a resource JSON file with the information for the compute resource on how to access and download the solution.
To prepare data, pack it into a TAR.GZ archive. Run the following command to create the archive:
tar -czvf <archiveName> -C <pathToData> .
Where:
- : desired name of the resulting archive
- : directory with the data
Do not omit the dot at the end of the command. Ensure no system or hidden files end up in the archive.
For example:
tar -czvf archived_data.tar.gz -C ./data .
Run the files upload
command using the TAR.GZ archive from the previous step.
The command will create a resource JSON file with the information for the compute resource on how to access and download the data.
Run the workflows create
using the resource JSON file created in Step 2. When the order is created, you will see the order ID in the terminal output.
It may be more convenient to use the Marketplace GUI for this and the following step.
Orders take a few minutes to process. Use the orders get
command to track the progress. When the order status is Done
, retrieve the result using the orders download-result
command.
Certain solutions, such as Tunnel Server, may have the result available earlier. For them, the status Processing
means they are live and operational. Read more in the [Usage scenarios](Usage scenarios) section.