The file structure looks as follows:
/components/\<componentpackagename\>/\<packagefiles\>
An example component skeleton can be found in /components/template.
they can be used by more than one Component
/utils/\<utilpackagename\>/\<packagefiles\>
The development environment can be set up with the following steps:
tested on ubuntu 14.04 and debian 8 with python 2.7
git clone [email protected]:pg-decaf/Prototype.git
cd Prototype
./decaf_utils.sh
# select *Environment*
# then select *All*
You will be asked for root privileges. The routine will
- install all nessesary debian packages
- set up a python environment
- install needed python packages
- build all components
- create needed directories
- copy default configs into
/etc/decaf/
Logs of components can be found in /var/log/decaf/
Under components you can manage all your components
You can also set up the environment manually with the following steps.
Before getting started we need the following prerequisites:
- Install RabbitMQ
- Set up python virtualenv
Debian:
Add the following line to /etc/apt/sources.list
apt_sources
deb http://www.rabbitmq.com/debian/ testing main
and execute these commands
wget https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo apt-key add rabbitmq-signing-key-public.asc
sudo apt-get update && sudo apt-get install rabbitmq-server
Now we have to set up the the virtual environment.
virtualenv -p <python_binary> <virtualenv_name>
Finally we have to activate the environment.
source <virtualenv_path>/bin/activate
To install the components using make execute
make install
If you want to create a new component, have a look into the example-scaling component.