Fix dev tools

Change-Id: I59972187ef145434cef75b2616e8999e6e572c57
This commit is contained in:
hosingh000 2017-09-14 11:21:36 -05:00
parent 8f7e098726
commit cc53faeb9b
5 changed files with 17 additions and 8 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ ord.egg-info/
ranger_agent.egg-info
.settings/
.tox/
localrc

View File

@ -1,2 +1,7 @@
source ~/devstack/local.conf &> /dev/null
mysql -uroot -p$MYSQL_PASSWORD < ranger-agent-db.sql &> /dev/null
#!/bin/bash
source localrc
echo Creating database: ord
mysql -uroot -p$MYSQL_PASSWORD < ./ranger-agent-db.sql
echo Done !

4
tools/ranger-agent-db.sql Normal file → Executable file
View File

@ -1,2 +1,2 @@
DROP DATABASE IF EXIST ord;
CREATE DATABASE IF NOT EXIST ord;
DROP DATABASE IF EXISTS ord;
CREATE DATABASE ord;

View File

@ -1,13 +1,14 @@
#! /usr/bin/env bash
source localrc
cd ..
sudo -H pip install -r requirements.txt
sudo -H pip install -r requirements.txt --proxy $HTTP_PROXY
sudo python setup.py install
echo ""
echo "Running ord-dbsync"
nohup ord-dbsync > /dev/null 2>&1 &
sudo nohup ord-dbsync > /dev/null 2>&1 &
echo ""
echo "Running ord-api"
nohup ord-api > /dev/null 2>&1 &
sudo nohup ord-api > /dev/null 2>&1 &
echo ""
echo "Running ord-engine"
nohup ord-engine > /dev/null 2>&1 &
sudo nohup ord-engine > /dev/null 2>&1 &

2
tools/sample-localrc Executable file
View File

@ -0,0 +1,2 @@
MYSQL_PASSWORD=
HTTP_PROXY=