#Standalone installation ##Web server Requirements
yum install nginxservice nginx start
- Postgresql 9.0 and above
git clone https://github.com/RhodiumToad/ip4r.gitcd ip4rmake installpsql -c 'create extension ip4r;'git clone https://github.com/dimitri/prefix.gitcd prefixmake installpsql -c 'create extension prefix;'psql -c 'create extension btree_gist;'createuser -c -s webbackend
- Python >= 3.5 (in /usr/local/bin)
- PIP => 9.0.1
- install falcon_rest from git:
git clone ssh://ssh://git@stash.denovolab.com:7999/af/falcon_rest.git
/usr/local/bin/python3.5 setup.py install
3. see requirements.txt
##installation steps
-
cd to any temporary writable dir and get tarball from git:
-
git archive --remote=ssh://git@stash.denovolab.com:7999/clas6/webbackend.git HEAD:dist api-dnl-head.tar.gz | tar -x -
pip install --upgrade api-dnl-head.tar.gz -
all needed data files wil be installed to /opt/denovolab_v6/api_dnl
-
cd /opt/denovolab_v6/api_dnl -
cat schema/schema.sql | psql -U webbackend -d class4_dnl -
cat schema/class4_update_record.sql | psql -U webbackend -d class4_dnl -
cat schema/data.sql | psql -U webbackend -d class4_dnl -
change api.ini api_host must be external ip address or dns name of api
-
api_schema depend of nginx "http" ot "https" configuration
-
installation will create following entry points for api_dnl:
/usr/local/bin/api_dnl_run<-- run gunicorn web service/usr/local/bin/api_dnl_pcaploader<-- exec pcap loader/usr/local/bin/api_dnl_pjsipcall<-- exec test call service/usr/local/bin/api_dnl_ws_broker<-- exec web socket callback service/usr/local/bin/api_dnl_worker<-- exec celery run task service/usr/local/bin/api_dnl_beat<-- exec celery schedule task service
##standalone upgrade version
git archive --remote=ssh://stash.denovolab.com:7999/cls/license-portal-api.git HEAD:dist api_lic-head.tar.gz | tar -xpip install --upgrade builds/api_lic-head.tar.gzcd /opt/denovolab/api_licsudo /usr/local/bin/alembic upgrade head
cd /opt/denovo
/usr/local/bin/api_lic_run
##install
git clone http://stash.denovolab.com/scm/clas6/webbackend.gitcd webbackendvirtualenv --prompt '[webbackend] ' -p /path/to/python3.xsource venv/bin/activate- install falcon_rest as for above
pip install -r requirements.txt
pip install gunicorn
- Run LIC API
make run-staging-dnl
echo "user@1.2.3.4" > .server- `user must have ssh on this server
make build-vermake deploy
python3.5 -m unittest discover api_smsc.test