#Standalone installation ##Web server Requirements
yum install nginx
service nginx start
- Postgresql 9.0 and above
git clone https://github.com/RhodiumToad/ip4r.git
cd ip4r
make install
psql -c 'create extension ip4r;'
git clone https://github.com/dimitri/prefix.git
cd prefix
make install
psql -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:https://ssh:https://[email protected]: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:https://[email protected]: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:https://stash.denovolab.com:7999/cls/license-portal-api.git HEAD:dist api_lic-head.tar.gz | tar -x
pip install --upgrade builds/api_lic-head.tar.gz
cd /opt/denovolab/api_lic
sudo /usr/local/bin/alembic upgrade head
cd /opt/denovo
/usr/local/bin/api_lic_run
##install
git clone https://stash.denovolab.com/scm/clas6/webbackend.git
cd webbackend
virtualenv --prompt '[webbackend] ' -p /path/to/python3.x
source 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 "[email protected]" > .server
- `user must have ssh on this server
make build-ver
make deploy
python3.5 -m unittest discover api_smsc.test