Runtime
This part of the documentation focuses on describing the runtimes that Cloud supports. To deploy your application to Cybotrade Cloud, you need to first prepare a cybotrade.yaml
file to tell the runtime how to setup your environment.
Python
To use the Python runtime through Cybotrade Cloud, a configuration as follows is required:
runtime: python
spec:
entrypoint: main.py
requirements: requirements.txt
Schema
runtime
- only valid value is python (required)spec.entrypoint
- the filename of your python program (required)spec.requirements
- the filename of your python program's dependencies (optional)
Packaging your application for deployment
Let's say you have an application that resembles a file tree as follows:
Create a file cybotrade.yaml
and use the configuration as given above, now your file tree should look like
Now, put your entire application into a zip file. You can use any tool to do this, if you are on MacOS or Linux, you can use the following command:
zip -r bootstrap.zip *
This will make a bootstrap.zip
file in your current directory and you will use this file to create an instance later.
Now, login to Cybotrade Cloud (opens in a new tab) and click Create.
You should be brought to the following screen and from here you can upload your bootstrap.zip
file by clicking the No file chosen section, remember to choose the python image and the rest can be set to your preference.
From here after you created the instance, you should see your instance is now creating, note that it might take a few seconds to minutes until your instance is fully started.