git clone https://@opensourceprojects.eu/git/p/c2net/tests c2net-tests



File Date Author Commit
bundle 2017-03-14 Daniel Machancoses Daniel Machancoses [b72839] Updated service manifest
files 2016-12-21 Daniel Machancoses Daniel Machancoses [ebe4b9] Moved all bundle files to bundle folder
scripts 2017-02-16 Daniel Machancoses Daniel Machancoses [e9cc6a] Removed variable DNS from docker
readme.md 2017-01-17 Daniel Machancoses Daniel Machancoses [9743fc] Update to latest local-stamp version

Read Me

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 ) ✘
    2. CNM ✔
    3. ACS ✔
    4. DS.sql ✔
    5. MariaDBWrapper ✔
  2. OPT Components :
    1. OPC ✔
    2. SM ✔
    3. PM ✔
    4. Job ✔
    5. TaskExecutor (with the embedded OptimizationAlgorithms) ✔
  3. DCF Components:
    1. Pub/Sub ✔
    2. RM ✔
    3. DKMS ✔
    4. TPM ✔
    5. Mobile Application
  4. COT Components:
    1. OPP
    2. MPE-MD
    3. MPE-AA
-->

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:

-->

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
  2. UCP component compiled and working, to be changed when integration policy for UCP exists - DIRTY-FIX
  3. Worker component used by UCP included here - DIRTY-FIX
  4. Deployment manifest
  5. Service manifest
  6. C2NET service bundle file, to be deployed
  7. UCP zip component already compiled - DIRTY-FIX
  8. Script to build, compile and zip into the (8) bundle file, needs admin rights
  9. 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