Cylon has a few heavy dependencies such as OpenMPI and Apache Arrow that needs to be compiled and configured before start writing Cylon applications. While Cylon build takes care of these things for you, optionally following approaches can be used to quick start with the development process.
Cylon docker images contains prebuilt cylon binaries and environment configured to start development right away.
Start by creating a volume to hold you source code.
Then start a Cylon container as follows with your new volume mounted at /code.
Optionally, you could skip creating a volume and mount a local folder to the /code directory.
The Cylon source and binaries are located at /cylon directory, and your development environment is already preloaded with everything you need to run a Cylon application locally. With the below command, you should be able to run sample applications.
It's crucial to save all your work into the /code directory mounted in the above step to prevent data losses.
A cylon non-distributed application can be simple as follows.
Use the below command to activate the python virtual environment which comes preloaded with all the Cylon libraries.
Assuming the above python file has been saved under /code/helloworld.py, it can be executed as follows.
A distributed cylon application will have an environment initialized as follows.
To test a distributed application within the container, start you application with mpirun as follows.