View Source

{panel}
Instructions on how to generate new streams.xml and params.xml after Preload Database has been updated.
{panel}

h3. Download git repo:

{code}
#do following two commands only if need to bypass proxy
export GIT_SSL_NO_VERIFY=true 
export http_proxy="http://proxy.ext.ray.com:80"  

#pull github repo with validate tool 
git clone https://github.com/oceanobservatories/ooi-tools
{code}

h3. Install required Python modules:

{code}
pip install gdata

pip install docopt

{code}

h3. Generate streams.xml and params.xml files:

{code}
#Enter directory 
cd ~/ooi-tools/preload

#Remove the preload data base from the directory(if it exists)
rm preload.db

#Run script to generate a new streams.xml and params.xml file
./streams_to_xml.py

#Move newly generated streams.xml to proper location
cp streams.xml ~/ooi/edex/com.raytheon.uf.edex.ooi.decoder.dataset.spring/utility/edex_static/base/ooi/streams/streams.xml
#Move newly generated params.xml to proper location
cp params.xml ~/ooi/edex/com.raytheon.uf.edex.ooi.decoder.dataset.spring/utility/common_static/base/ooi-param/masterParameters.xml

#Move new preload to the InstrumentAgent location for test usage
#ONLY NEED TO DO IF TESTING IADs
cp preload.db ~/ooi/edex/com.raytheon.uf.ooi.plugin.instrumentagent/utility/edex_static/base/ooi/instruments/mi-instrument/preload.db
{code}

h3. Build OOI:

In eclipse, right-click on ooi-build/build.deploy/deploy-install.xml

Select Run As \-> Ant Build...

In the Edit Configuration pop-up, select Run button

Verify build was successful
{code}
[exec] Deploying localization OOI...
[exec] Build took: 19s
deploy-using-environment-groovy:

BUILD SUCCESSFUL
{code}

h3. Purge Edex database: 


h5.
{code}
#Need to do!
#Assumes Edex is already running


~/uframes/ooi/bin/edex-server purgeall
~/uframes/ooi/bin/edex-server resetdb~/uframes/ooi/bin/edex-server edex stop~/uframes/ooi/bin/edex-server edex start
{code}