The iotp-orchestrator is a stateless application. This means that its code can be replaced and no migration of data is needed.
Due to its stateless behavior, iotp-orchestrator does not require any backup procedure.
- Internet access
- Connectivity to http://github.com
- Git
- Python 3 and pip3
- C and C++ compilation platform: gcc, g++, make and python headers
- UNIX platforms but not mandatory
- WSGI Web server (Apache2/Nginx) but not mandatory
Make sure you have installed Python and Git
Download the iotp-orchestrator code and change of directory:
git clone [email protected]:telefonicaid/orchestrator.git
git checkout BRANCH
cd iotp-orchestrator
Define some variables:
export DJANGO_SETTINGS_MODULE=settings
export PYTHONPATH=$(pwd):$(pwd)/src:/usr/local/lib/python2.7/site-packages
Create a virtual env
virtualenv env
source env/bin/activate
cd src
Then install all dependencies by running:
pip3 install -r requirements.txt
Start server in 8084 port using django web server:
python3 manage.py runserver 8084 --settings=settings.dev
or using another web server like uWSGI
uwsgi --http :8084 --chdir /home/user/iotp-orchestrator/src --wsgi-file wsgi.py --env DJANGO_SETTINGS_MODULE=settings.dev --virtualenv /home/user/iotp-orchestrator/env --master --processes 1 --threads 4 --stats 127.0.0.1:8085
Build RPM by running script package-orchestrator
package-orchestrator.sh
Just install as usual:
rpm -iVh iotp-orchestrator.rpm
Once installed, configure your environment settings following Configuration
RPM install orchestrator as a service controlled by a daemon
$ sudo service orchestrator start
curl -X GET http://127.0.0.1:8084/v1.0/service -H "Content-Type: application/json" -d '{ "DOMAIN_NAME": "admin_domain", "SERVICE_ADMIN_USER": "cloud_admin", "SERVICE_ADMIN_PASSWORD":"password"}'