You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tutorial: deploying your first application using plcli
Axel Niklasson edited this page Oct 17, 2019
·
5 revisions
Tutorial: deploying your first application
There are two things that you need to do in order to be able to deploy an application to PlanetLab using plcli:
Make sure that there are healthy nodes with all the needed software attached to your slice
Add a .plcli.yml file to the root of your public git repository
Adding a .plcli.yml file to your repository
The .plcli.ymlmust be added to the root of your repository and there are three properties that can be added:
bootstrap_cmds: list of commands that chained together bootstraps your application
env: environment variables that will be available to your app once started
launch_cmds: list of commands that chainged together starts your application
There will also be an additional environment variable by the name PLCLI_INSTANCE_ID that can be used on application level to do some instance-id based logic, such as opening correct ports etc.
Below you can find a sample file from the demo app: