Skip to content

cedadev/eos-db

 
 

Repository files navigation

eos-db

Database and API server for Cloudhands-EOS system.

Quickstart for Ubuntu 14.04

$ sudo apt-get install python3.4-dev postgresql libpq-dev libffi-dev
# A hack to bootstrap the venv properly

$ pyvenv-3.4 --without-pip ~/eoscloud-venv
$ wget -q -O- https://bootstrap.pypa.io/get-pip.py | ~/eoscloud-venv/bin/python
$ sudo -Hi -u postgres createuser -w $USERNAME -DRS
$ sudo -Hi -u postgres createdb -w eos_db -E UTF8 -O $USER
$ ~/eoscloud-venv/bin/python setup.py develop
$ ~/eoscloud-venv/bin/python 
$ ~/eoscloud-venv/bin/python bin/eos-init

$ ~/eoscloud-venv/bin/python bin/eos-admin help

Use this tool to configure your users and servers, before starting the DB:

$ ~/eoscloud-venv/bin/pserve development.ini

Notes

This assumes you want to develop the system. For production, follow a similar path but do it in a dedicated account and use '... setup.py install'.

The server module requires a Python 3 environment, and will fail if used with Python2. ( TODO - see what tests actuall fail )

About

Database and API server for Cloudhands-EOS system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%