cc01846056
Optionally enable STv2 event playback through the time_sync service and early UsageHandler support. Change-Id: I5988d320fe41df29c52ebdb8e579bf0d7f53a45f
63 lines
1.2 KiB
Bash
Executable File
63 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "StackTach dev env build script"
|
|
|
|
SOURCE_DIR=git
|
|
VENV_DIR=.venv
|
|
PIPELINE_ENGINE=winchester
|
|
|
|
if [[ -f local.sh ]]; then
|
|
source local.sh
|
|
fi
|
|
|
|
if [[ ! -d "$SOURCE_DIR" ]]; then
|
|
mkdir $SOURCE_DIR
|
|
fi
|
|
|
|
if [[ ! -d "$VENV_DIR" ]]; then
|
|
virtualenv $VENV_DIR
|
|
fi
|
|
|
|
cd $SOURCE_DIR
|
|
for file in shoebox simport notigen notification-utils \
|
|
stackdistiller quincy quince \
|
|
klugman winchester
|
|
do
|
|
git clone http://git.openstack.org/cgit/stackforge/stacktach-$file
|
|
done
|
|
# We still have some stragglers ...
|
|
for file in StackTach/notabene rackerlabs/yagi
|
|
do
|
|
git clone https://github.com/$file
|
|
done
|
|
cd ..
|
|
|
|
source ./$VENV_DIR/bin/activate
|
|
|
|
# Some extra required libs ...
|
|
pip install mysql-connector-python --allow-external mysql-connector-python
|
|
pip install gunicorn
|
|
pip install httpie
|
|
pip install librabbitmq
|
|
|
|
# Needed by pyrax:
|
|
pip install pbr
|
|
|
|
for file in $SOURCE_DIR/*
|
|
do
|
|
echo "----------------------- $file ------------------------------"
|
|
cd $file
|
|
rm -rf build dist
|
|
python setup.py install
|
|
cd ../..
|
|
done
|
|
|
|
(cat yagi.conf.$PIPELINE_ENGINE ; cat yagi.conf.common ) > yagi.conf
|
|
|
|
if [ $PIPELINE_ENGINE == "winchester" ]
|
|
then
|
|
winchester_db -c winchester.yaml upgrade head
|
|
fi
|
|
|
|
screen -c screenrc.$PIPELINE_ENGINE
|