File | Date | Author | Commit |
---|---|---|---|
components | 2016-12-05 | Daniel Machancoses | [77325a] Cleaned code, renamed class to be logged with J... |
deployment | 2016-12-05 | Daniel Machancoses | [12f84c] Reorganized code to be used externally |
scripts | 2016-12-05 | Daniel Machancoses | [79ab8e] Added missing build script |
service | 2016-12-05 | Daniel Machancoses | [12f84c] Reorganized code to be used externally |
readme.md | 2016-12-09 | Daniel Machancoses | [87e6ea] Fixed comment |
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
- 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-mariadbwrapper-code ├── c2net-cpl-paas4man-jex-jobs-code ├── c2net-cpl-paas4man-jex-taskexecutor-code ├── c2net-cpl-paas4man-ucp-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 ...
The c2net-test folder also contains a components folder where front-end Components are used in this service to test it using HTTP.
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
Test the service
You can use curl or just an explorer:
curl "http://localhost:9000/jobex/ping"
and you should get
{ "success":true, "message":"PONG" }
HOW TO CLONE REPOSITORIES
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
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 (not integrated)
git clone https://{USER}@opensourceprojects.eu/git/p/c2net/dcf/dcf-rm/code c2net-dcf-dcf-rm-code
TO BE COMPLETED...
DESCRIPTION OF C2NET-TEST FOLDER
The folder structure of this service is as follows:
. ├── components (1) │ ├── feacsdssql (2) │ └── jobexfe (3) ├── 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
- Deployment manifest
- Build script
- Deploy script to local-stamp
- Syntax validator script
- Service manifest
- This file
COMPONENT INTEGRATION STATUS
Component Name | Developer | 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 | c2net-cpl-paas4man-dst-dkms-code | ||||
dkms | uninova | uninova.c2netproject.eu/components/dkms/ | 0_0_1 | c2net-cpl-paas4man-dst-dkms-code | |
tpm | |||||
mobile | |||||
opp | |||||
mpe-md | |||||
mpe-aa |