Fix dev tools
Change-Id: I59972187ef145434cef75b2616e8999e6e572c57
This commit is contained in:
parent
8f7e098726
commit
cc53faeb9b
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ ord.egg-info/
|
||||
ranger_agent.egg-info
|
||||
.settings/
|
||||
.tox/
|
||||
localrc
|
||||
|
@ -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
4
tools/ranger-agent-db.sql
Normal file → Executable file
@ -1,2 +1,2 @@
|
||||
DROP DATABASE IF EXIST ord;
|
||||
CREATE DATABASE IF NOT EXIST ord;
|
||||
DROP DATABASE IF EXISTS ord;
|
||||
CREATE DATABASE ord;
|
||||
|
@ -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
2
tools/sample-localrc
Executable file
@ -0,0 +1,2 @@
|
||||
MYSQL_PASSWORD=
|
||||
HTTP_PROXY=
|
Loading…
Reference in New Issue
Block a user