Cloud
Runtime

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:

cybotrade.yaml
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:

  • main.py
  • helpers.py
  • requirements.txt
  • Create a file cybotrade.yaml and use the configuration as given above, now your file tree should look like

  • main.py
  • helpers.py
  • requirements.txt
  • cybotrade.yaml
  • 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.

    cloud create button

    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.

    cloud create instance

    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.