Last active
August 29, 2015 13:57
-
-
Save kwilcox/9508748 to your computer and use it in GitHub Desktop.
OOI startup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
. ~/source_ooi | |
. $HOME/.venvburrito/startup.sh | |
pushd . | |
COI_VIRTUALENV=ooi | |
UI_VIRTUALENV=ion-ux | |
COI=/home/kwilcox/Development/coi-services | |
CONTAINER=kyle | |
IONUX=/home/kwilcox/Development/ion-ux | |
workon $UI_VIRTUALENV | |
cd $IONUX && git checkout master && git pull ooici master | |
workon $COI_VIRTUALENV | |
cd $COI && git checkout master && git pull ooici master && git submodule update | |
echo "Bootstrapping" | |
sleep 2 | |
python bootstrap.py -v 2.2.0 | |
echo "Building out" | |
sleep 2 | |
$COI/bin/buildout | |
echo "Generating Interfaces" | |
sleep 2 | |
$COI/bin/generate_interfaces | |
# Launch three screens for OOI stuff in "ooi" | |
screen -dmS "ooi" | |
screen -dr "ooi" -X screen -t empty | |
screen -dr "ooi" -X sCreen -t preload | |
screen -dr "ooi" -X screen -t ui | |
echo "********" | |
echo "Run this in the 'empty' Window" | |
echo "source ~/source_ooi && source ~/.bashrc && workon $COI_VIRTUALENV && cd $COI && bin/pycc -fc -r res/deploy/r2deploy.yml -s $CONTAINER" | |
echo "********" | |
echo "Run this in the 'preload' Window" | |
echo "source ~/source_ooi && source ~/.bashrc && workon $COI_VIRTUALENV && cd $COI && bin/pycc -x ion.processes.bootstrap.ion_loader.IONLoader op=load loadui=True scenario=BASE,BETA,R2_DEMO,ALPHA path=master ui_path='http://userexperience.oceanobservatories.org/database-exports/Candidates' attachments=res/preload/r2_ioc/attachments -s $CONTAINER" | |
echo "*** OR ***" | |
echo "(for production):" | |
echo "source ~/source_ooi && source ~/.bashrc && workon $COI_VIRTUALENV && cd $COI && bin/pycc -x ion.processes.bootstrap.ion_loader.IONLoader cfg=res/preload/r2_ioc/config/ooi_alpha.yml path=master -s $CONTAINER" | |
echo "********" | |
echo "Run this in the "ui" window" | |
echo "source ~/source_ooi && source ~/.bashrc && workon $UI_VIRTUALENV && cd $IONUX && python main.py" | |
popd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment