Project

General

Profile

OLD PAGE

Deploying

#

The short form

To install all the dependencies and pick a place (in this example /tmp/place)

cd /tmp/place
unset PRODUCTS
unset UPS_DIR
unset SETUP_UPS
wget ftp://ftp.fnal.gov/products/bootstrap/v3_0/ups_bootstrap_unified_v5_0_4_Linux64bit+2.tar.gz
tar xzf ups_bootstrap_unified_v5_0_4_Linux64bit+2.tar.gz
. `pwd`/setups.sh
PATH=$PATH:/bin:/usr/bin
setup upd
upd install -G -c ups v5_2_0

setup ups
upd install -G -c poms v1_1_0 
setup poms
cd $POMS_DIR/webservice
scp poms@fermicloud045:products/poms/devel/webservice/passwd.ini .

mkdir -p /home/poms/private/logs/poms
chown $USER /home/poms/private/logs/poms/*

python service.py &

You should now be able to talk to a poms v1_1_0 instance on localhost:8080.

Now we should kill that one off:

kill %1

Now you should make a development instance checked out from Git:

Note: At the moment there are some new dependencies in development, so we need these included:

upd install -G -c pytest

source /tmp/wherever/setups.sh
setup poms
cd $POMS_DIR/../..
git clone ssh://p-prod_mgmt_db@cdcvs.fnal.gov/cvs/projects/prod_mgmt_db devel
cd devel
scp poms@fermicloud045:products/poms/devel/webservice/passwd.ini webservice/passwd.ini
ups declare -r `pwd` -M ups -m poms.table poms devel -0
ups declare -c poms devel -0

And try it out.

setup poms devel 
cd $POMS_DIR/webservice
python service.py &

And when you're done, kill that one off:

kill %1