File | Date | Author | Commit |
---|---|---|---|
bundle | 2016-12-21 | Daniel Machancoses | [ebe4b9] Moved all bundle files to bundle folder |
files | 2016-12-21 | Daniel Machancoses | [ebe4b9] Moved all bundle files to bundle folder |
scripts | 2016-12-21 | Daniel Machancoses | [ebe4b9] Moved all bundle files to bundle folder |
readme.md | 2016-12-21 | Daniel Machancoses | [327284] Merge scripting branch |
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.
INTEGRATION PHASES
The already integrated components are marked with a check symbol (✔). The actual status of the C2NET service is as follows:
- Initial Step. C2NET service with basic set of PaaS 4 Manufacturing components:
- UCP (partial copy of TPM)
- CNM ✔
- ACS ✔
- DS.sql ✔
- MariaDBWrapper ✔
- OPT Components :
- OPC ✔
- SM ✔
- PM ✔
- Job ✔
- TaskExecutor (with the embedded OptimizationAlgorithms) ✔
- DCF Components:
- Pub/Sub ✔
- RM ✔
- DKMS ✔
- TPM ✔
- Mobile Application
- COT Components:
- OPP
- MPE-MD
- MPE-AA
HOW TO 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-feacsdssql-code ├── c2net-cpl-paas4man-dst-mariadbwrapper-code ├── c2net-cpl-paas4man-jex-fe-code ├── c2net-cpl-paas4man-jex-jobs-code ├── c2net-cpl-paas4man-jex-taskexecutor-code ├── c2net-cpl-paas4man-tpm-code ├── c2net-cpl-paas4man-ucp-code-tpm-admin ├── 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 ...
The c2net-test folder also contains a components folder where front-end Components are used in this service to test it using HTTP. There are 2 front-end components, and more could be added (only for testing purpuses)
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
Verify manifests in the service
./validate.sh
Deploy to local-stamp
Start your local stamp docker, then execute:
./deploy_local_stamp.sh
HOW TO CLONE 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
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:
. ├── components (1) │ ├── fe-acsdssql (2) │ └── fe-jobex (3) │ └── ... (4) ├── deployment │ └── Manifest.json (4) ├── scripts │ ├── build.sh (5) │ ├── deploy_local_stamp.sh (6) │ └── validate.sh (7) ├── service │ └── Manifest.json (8) └── readme.md (9)
Where:
- Folder which contains the front end components.
- ACS-DSSQL Front End Component
- JOBEX Front End Component
- Rest of components go here #todo change and zip only
- Deployment manifest
- Build script
- Deploy script to local-stamp
- Syntax validator script
- Service manifest
- This file
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