Data Warehousing ETL
More to come...
Sandbox is fabricated in the same vein as the Edgeflip repository, so beware the copypasta. If you already have an edgeflip sandbox, 1-3 will be done and are skippable, but are included here for completeness.
-
You'll need an SSH key with access to the edgeflip github account in ~/.ssh -- contact us if you need to get one.
-
Install minimal developer tools, git and Fabric:
$
sudo apt-get install git python-pip
$sudo pip install Fabric>=1.6
-
Add the RabbitMQ ppa (such that the
fab build
step will automatically install the appropriate version). -
Check out the repo:
git clone https://github.com/edgeflip/forklift.git
-
From within the checkout hierarchy, build the application:
$
ENV=development fab build
(To see all tasks and options, run
fab -l
.) -
Run migrations: $
ENV=development alembic upgrade head
-
Test: $
ENV=development fab test
This is the same as 'edgeflip' as well, so skip this if you've done this for that repo.
- Start by installing RabbitMQ:
sudo apt-get install rabbitmq-server
. (If this is your first setup,fab build
should have done this for you.) - Create a user:
sudo rabbitmqctl add_user edgeflip edgeflip
- Create a vhost:
sudo rabbitmqctl add_vhost edgehost
- Set permissions for this user on that new vhost:
sudo rabbitmqctl set_permissions -p edgehost edgeflip ".*" ".*" ".*"
$ ENV=development fab serve.celery