|
1 | 1 | Development Interface |
2 | 2 | ===================== |
3 | 3 |
|
| 4 | +Setup |
| 5 | +----- |
4 | 6 |
|
5 | | -TODO: (Loïc) How to use Alien4Cloud developing and Deploying TOSCA Workflow |
| 7 | +Alien4Cloud & Yorc |
| 8 | +################## |
| 9 | + |
| 10 | +Please refer to the documentation of the Alien4Cloud & Yorc project for more information. |
| 11 | + |
| 12 | +A instance of Alien4Cloud and Yorc is available on Juelich cloud, ask to the project to have an access |
| 13 | + |
| 14 | +Importing required components into Alien4Cloud |
| 15 | +############################################## |
| 16 | + |
| 17 | +Some TOSCA components and topologies templates need to be imported into Alien4Cloud. |
| 18 | +If you are using the instance on Juelich cloud, this is already done and you can move to the next paragraph. |
| 19 | + |
| 20 | +You should first move to the ``Catalog`` tab and then the ``Manage archives`` tab, finally click on ``Git import`` to add components. |
| 21 | + |
| 22 | +.. figure:: Figures/catalog.png |
| 23 | + :figwidth: 50 % |
| 24 | + :alt: Alien4Cloud catalog |
| 25 | + :align: center |
| 26 | + |
| 27 | + Click on ``Git import`` to add components |
| 28 | + |
| 29 | +You should have at least the three repositories defined as shown in :numref:`fig_alien4cloud_git_catalog`: |
| 30 | + |
| 31 | +.. _fig_alien4cloud_git_catalog: |
| 32 | +.. figure:: Figures/git-catalog.png |
| 33 | + :figwidth: 50 % |
| 34 | + :alt: Alien4Cloud git catalog |
| 35 | + :align: center |
| 36 | + |
| 37 | + Click on ``Git location`` to define imports from a git repository |
| 38 | + |
| 39 | + |
| 40 | +Click on ``Git location`` to define imports from a git repository as shown in :numref:`fig_alien4cloud_git_import_setup` |
| 41 | + |
| 42 | +.. _fig_alien4cloud_git_import_setup: |
| 43 | +.. figure:: Figures/git-import-setup.png |
| 44 | + :figwidth: 50 % |
| 45 | + :alt: Alien4Cloud setup a catalog git repository |
| 46 | + :align: center |
| 47 | + |
| 48 | + Alien4Cloud setup a catalog git repository |
| 49 | + |
| 50 | +Once done you can click on ``Import all``. |
| 51 | + |
| 52 | +Creating an application based on the minimal workflow example |
| 53 | +------------------------------------------------------------- |
| 54 | + |
| 55 | +Move to the ``Applications`` tab and click on ``New application``. |
| 56 | + |
| 57 | +.. figure:: Figures/applications.png |
| 58 | + :figwidth: 50 % |
| 59 | + :alt: Alien4Cloud applications list |
| 60 | + :align: center |
| 61 | + |
| 62 | + Manage applications in Alien4Cloud |
| 63 | + |
| 64 | +Then create a new application based on the minimal workflow template as shown in :numref:`fig_alien4cloud_app_create` |
| 65 | + |
| 66 | +.. _fig_alien4cloud_app_create: |
| 67 | +.. figure:: Figures/new-application.png |
| 68 | + :figwidth: 50 % |
| 69 | + :alt: Alien4Cloud create a new application |
| 70 | + :align: center |
| 71 | + |
| 72 | + Alien4Cloud create a template based application |
| 73 | + |
| 74 | +Edit the topology to fit your needs: |
| 75 | + |
| 76 | +.. figure:: Figures/topology.png |
| 77 | + :figwidth: 50 % |
| 78 | + :alt: Alien4Cloud minimal workflow topology |
| 79 | + :align: center |
| 80 | + |
| 81 | + Alien4Cloud minimal workflow topology |
| 82 | + |
| 83 | +Then click on ``Deploy`` to deploy the application. |
| 84 | + |
| 85 | +.. figure:: Figures/deploy.png |
| 86 | + :figwidth: 50 % |
| 87 | + :alt: Alien4Cloud deploy an application |
| 88 | + :align: center |
| 89 | + |
| 90 | + Alien4Cloud deploy an application |
| 91 | + |
| 92 | +Make your workflow available to end-users using the WaaS API |
| 93 | +------------------------------------------------------------ |
| 94 | + |
| 95 | +In order for the WaaS API to know which workflow to allow users to use, you should add a specific tag to your Alien4Cloud application. |
| 96 | +Move to your application main panel and under the ``Tags`` section add a tag named ``hpcwaas-workflows``. |
| 97 | +The tag value should be a coma-separated list of workflow names that could be called through the HPC WaaS API. |
| 98 | +In the minimal workflow example, this tag value should be ``exec_job``. |
0 commit comments