Skip to end of metadata
Go to start of metadata

This page needs to be updated.  Please disregard the information in this page for now.

How to publish a dataset driver

Make sure your git branch is up to date with:

git fetch upstream

git merge upstream/master

Confirm you are working in your virtual environment, if you aren't yet run:

workon <virtual environment name>

Switch to the instrument you want to publish with:

bin/dsa/switch_driver 

then entering the path

The integration tests should be run again to confirm all the files needed from the driver developer's environment made it into ooici correctly with:

bin/dsa/test_driver -i

Then the package driver script should be run.  This will generate a zip file which contains the egg for this driver and some metadata files for the driver.  This is done with:

bin/dsa/package_driver

The generated zip file will be in your home directory.  Unzip the generated zip file, then navigate into the created 'egg' directory.  This will contain the egg file for this driver.  This egg needs to be copied into the release server, which requires that you have access to the cc account on sddevrepo.
scp <egg_name> cc@sddevrepo.oceanobservatories.org:/var/www/html/releases
ssh cc@sddevrepo.oceanobservatories.org
chmod 644 /var/www/html/releases/<egg_name>
exit

If you prefer to use a bash function, you can use:
publish_driver() {
DESTDIR=/var/www/html/releases
scp $1 cc@sddevrepo.oceanobservatories.org:$DESTDIR
ssh cc@sddevrepo.oceanobservatories.org chmod 644 $DESTDIR/`basename $1`
}

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.