Parent: [448628] (diff)

Child: [838ed9] (diff)

Download this file

readme.md    244 lines (158 with data), 9.3 kB

ERROR! The markdown supplied could not be parsed correctly. Did you forget to surround a code snippet with "~~~~"?

# C2NET Service Implementation 

The aim of this section is to create a common repository to integrate all components within C2NET. 

`You may modify master branch if you think you have an improvement or contribution. `

`You can also contact me dmachancoses@iti.es`

The C2NET cloud service is implemented and integrated in an incremental and iterative way. This implies to create an initial version of the C2NET service with a subset of its components, and then add new components in new iterations. 

**IMPORTANT** Update to the latest version of local stamp:

    ./runtime-tool.sh install -n eslap://eslap.cloud/local-stamp/1_0_3


## INTEGRATION PHASES 

The already integrated components are marked with a check symbol (✔). The actual status of the C2NET service is as follows:

  1. **Initial Step**. C2NET service with basic set of PaaS 4 Manufacturing components:
    1. UCP (copy provided by TPM ) ✘
    1. CNM ✔
    1. ACS ✔
    1. DS.sql ✔ 
    1. MariaDBWrapper ✔
  1. **OPT Components** :
    1. OPC ✔
    1. SM ✔
    1. PM ✔
    1. Job ✔
    1. TaskExecutor (with the embedded OptimizationAlgorithms) ✔
  1. **DCF Components**:
    1. Pub/Sub ✔
    1. RM ✔
    1. DKMS ✔
    1. TPM ✔
    1. Mobile Application
  1. **COT Components**:
    1. OPP
    1. MPE-MD
    1. MPE-AA
   
<!-- 
## PREREQUISITES

Ensure you have installed the following images:

 * linagora.c2netproject.eu/runtime/ucp/1_0_0 (PROBLEM HERE: installing with runtime_tools.sh provides a different name)
 * c2netproject.eu/runtime/java/dev:1_0_0
 * c2netproject.eu/runtime/java/1_0_0
 * c2netproject.eu/runtime/nodejs/1_0_1
 * eslap.cloud/runtime/mariadb/1_0_0 -->

## BUILD AND DEPLOY

All repositories, including this c2net-test project, should be cloned into the same folder. We will refer it as C2NET_HOME. The folder structure is as follows:

    C2NET_HOME
    .
    ├── c2net-cpl-paas4man-acs-code
    ├── c2net-cpl-paas4man-cnm-code
    ├── c2net-cpl-paas4man-dst-dkms-code
    ├── c2net-cpl-paas4man-dst-dssql-code
    ├── c2net-cpl-paas4man-dst-mariadbwrapper-code
    ├── c2net-cpl-paas4man-jex-jobs-code
    ├── c2net-cpl-paas4man-jex-taskexecutor-code
    ├── c2net-cpl-paas4man-tpm-code
    ├── c2net-cpl-paas4sla-sdk-code
    ├── c2net-dcf-dcf-rm-code
    ├── c2net-dcf-msg-queue-code
    ├── c2net-opt-algorithms-code
    ├── c2net-opt-poma-opc-code
    ├── c2net-opt-poma-pomam-code
    ├── c2net-opt-poma-solvermanager-code
    ├── c2net-tests
    ...

> An UCP component is added here with only a mock version of TPM module, this will be changed whenever we decide a UCP integration policy 

More details about how to clone the repositories can be found in the next section.

###Build the service

You may need to be admin, you need to be in the scripts folder:

    cd ${C2NET_HOME}/c2net-tests/scripts/
    
And execute it as admin:
    
    sudo ./build.sh

###Deploy to local-stamp 

Start your local stamp docker, then execute:

    ./deploy_local_stamp.sh


## CLONE COMPONENT REPOSITORIES

> You need to manually clone the repo and then switch to the tag or branch you want. Hopefully can be changed in future within a script.

Execute the following commands form the C2NET_HOME folder:

<!-- 
### UCP

git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/ucp/code c2net-cpl-paas4man-ucp-code -->
    
### CNM
 
 
    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/cnm/code c2net-cpl-paas4man-cnm-code
    
### ACS
 
 
    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/acs/code c2net-cpl-paas4man-acs-code
 
### DSSQL
 
     
     git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/dst/dssql/code c2net-cpl-paas4man-dst-dssql-code 
     
### MARIADB WRAPPER
 
 
     git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/dst/mariadbwrapper/code c2net-cpl-paas4man-dst-mariadbwrapper-code 
     
### OPC
 
 
     git clone https://{USER}@opensourceprojects.eu/git/p/c2net/opt/poma/opc/code c2net-opt-poma-opc-code
      
### SOLVER MANAGER
  
  
      git clone https://{USER}@opensourceprojects.eu/git/p/c2net/opt/poma/solvermanager/code c2net-opt-poma-solvermanager-code 
   
### POMA MANAGER


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/opt/poma/pomam/code c2net-opt-poma-pomam-code 

### JOB


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/jex/jobs/code c2net-cpl-paas4man-jex-jobs-code
     
### OPTIMIZATION ALGORITHMS


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/opt/algorithms/code c2net-opt-algorithms-code 
     
### TASK EXECUTOR


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/jex/taskexecutor/code c2net-cpl-paas4man-jex-taskexecutor-code 

     
### PUB/SUB Broker 


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/dcf/msg-queue/code c2net-dcf-msg-queue-code 
     
### Resource Manager 


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/dcf/dcf-rm/code c2net-dcf-dcf-rm-code   
    
### DKMS 


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/dst/dkms/code c2net-cpl-paas4man-dst-dkms-code   
         
### TPM 


    git clone https://{USER}@opensourceprojects.eu/git/p/c2net/cpl/paas4man/tpm/code c2net-cpl-paas4man-tpm-code  
      

## DESCRIPTION OF C2NET-TEST FOLDER

The folder structure of this service is as follows:
    
    .      
    ├── bundle (1)  
    │   ├── components
    │   │   ├── ucp-tpm    (2) 
    │   │   └── ucp-worker (3) 
    │   ├── deployment     
    │   │   └── Manifest.json (4) 
    │   ├── service
    │   │   └── Manifest.json  (5) 
    │   └── c2net_service_bundle.zip  (6) 
    ├── files
    │   └── ucp-tpm.zip (7)
    ├── scripts
    │   ├── build.sh  (8)                           
    │   ├── deploy_local_stamp.sh (9)
    │   ├── functions.sh  (10)                                                                      
    │   └── validate.sh
    └── readme.md


Where:

1. Folder to build the C2NET service bundle
1. UCP component compiled and working, to be changed when integration policy for UCP exists - DIRTY-FIX  
1. Worker component used by UCP included here - DIRTY-FIX 
1. Deployment manifest
1. Service manifest
1. C2NET service bundle file, to be deployed
1. UCP zip component already compiled - DIRTY-FIX 
1. Script to build, compile and zip into the (8) bundle file, needs admin rights
1. Script to deploy script into local-stamp


### COMPONENT INTEGRATION STATUS 

|Component Name |ui-module| Partner | Urn                                 | Version|Integrated* | GIT   	
|---	        |---      |---	    |---	                              |---	   |---|---		
|  ucp          |✘| linagora  | linagora.c2netproject.eu/components/ucp/  | 0_0_1  | ✘ | c2net-cpl-paas4man-ucp-code 
|  cnm          |✘| ikerlan   | ikerlan/components/cnm/                   | 0_0_115| ✔ | c2net-cpl-paas4man-cnm-code  	   	
|  acs          | | iti       | iti/components/acs/                       | 0_0_118| ✔ | c2net-cpl-paas4man-acs-code 	   	
|  dssql        | | iti       | iti/components/dssql/                     | 0_0_129| ✔ | c2net-cpl-paas4man-dst-dssql-code  	   	
|  mariadbw     | | iti       | iti/components/mariadbwrapper             | 0_0_119| ✔ | c2net-cpl-paas4man-dst-mariadbwrapper-code  
|  opc          |✘| cms       | cms.c2net/components/opc/                 | 0_0_2  | ✔ | c2net-opt-poma-opc-code	
|  solvermanager|✘| cigip     | cigip/components/solvermanager/           | 0_0_1  | ✔ | c2net-opt-poma-solvermanager-code  
|  poma         |✘| cms       | cms.c2net/components/pomam/               | 0_0_2  | ✔ | c2net-opt-poma-pomam-code  	   	
|  jobs         | | iti       | iti/components/jobs/                      | 0_0_3  | ✔ | c2net-cpl-paas4man-jex-jobs-code   	   	
|  taskexecutor | | iti       | iti/components/taskexecutor/              | 0_0_3  | ✔ | c2net-cpl-paas4man-jex-taskexecutor-code  	
|  optimization | | upv       | _'not a component'_                       | -      | ✔ | c2net-opt-algorithms-code   	   	
|  pubsub       | | atos      | atos.c2net/components/pubsub/             | 1_0_0  | ✔ | c2net-dcf-msg-queue-code  
|  rm           | | uninova   | uninova.c2net/components/rm/              | 1_1_0  | ✔ | c2net-dcf-dcf-rm-code
|  dkms         |✘| uninova   | uninova.c2netproject.eu/components/dkms/  | 1_0_0 | ✔ | 
c2net-cpl-paas4man-dst-dkms-code
|  tpm          |✘| vtt  	  | vtt.c2net/components/tpm/                 | 0_0_6  | ✔ | c2net-cpl-paas4man-tpm-code
|  mobile       | |   	      |   	                                    |        |   |   	   	
|  opp          | |   	      |   	                                    |        |   |   	   	
|  mpe-md       | |   	      |   	                                    |        |   |   	   	
|  mpe-aa       | |   	      |   	                                    |        |   |
          	
* Integrated: included in the bundle service but not tested