NIH | National Cancer Institute | NCI Wiki  

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Each day before you start using coding and testing locally, you'll want to Login to Dorian using the GAARDS UI to extend your local grid identity certificates. Roughly ever 24 hours they expire.
  2. Ensure your build-po/install.properties and build-po/upgrade.properties files contain the correct values, namely the following:
    Code Block
    pogrid.grid.secure.cert.location=${user.home}/.cagrid/certificates/${pogrid.grid.external.secure.host}-cert.pem
    pogrid.grid.secure.key.location=${user.home}/.cagrid/certificates/${pogrid.grid.external.secure.host}-key.pem
    pogrid.grid.external.secure.host=${env.HOSTNAME}
    
    Here is what my HOSTNAME environment variable is set to:
    Code Block
    steve-matyass-macbook-pro-2:~ smatyas$ echo $HOSTNAME
    steve-matyass-macbook-pro-2.local
    steve-matyass-macbook-pro-2:~ smatyas$ 
    
  3. Ensure that your GLOBUS_LOCATION environment variable is set
    Code Block
    steve-matyass-macbook-pro-2:~ smatyas$ echo $GLOBUS_LOCATION
    /Users/smatyas/dev/cagrid/ws-core-4.0.3
    
  4. Add your Grid Identity to your local PO database
    Note

    If anyone can improve the SQL to simply insertion, please do.

    Code Block
    
    --adding /O=caBIG/OU=caGrid/OU=Training/OU=Dorian/CN=<YOURUSERNAME> as a grid client test user account 
    --NOTE: depending on the existing user keys you may need to adjust the user_id value 
    INSERT INTO csm_user (user_id, login_name, first_name, last_name, organization, department, title, phone_number, password, email_id, start_date, end_date, update_date) values (8,'/O=caBIG/OU=caGrid/OU=Training/OU=Dorian/CN=matyass','Steve','Matyas','','','','','','',null,null,now());
    --user_group_id must be unique, user_id must correspond to value inserted above
    INSERT INTO csm_user_group (user_group_id, user_id, group_id) Values (8, 8, 5);
    
  1. Build your local dev instances
    Code Block
    steve-matyass-macbook-pro-2:build-po smatyas$ pwd
    /Users/smatyas/dev/projects/coppa/code/build-po
    steve-matyass-macbook-pro-2:build-po smatyas$ ant deploy:local:install
    ...
    
  2. After you receive a BUILD SUCCESSFUL, you'll need to wait for all JBoss server instances to start fully.
  3. Now that the servers have stared fully, you're ready to test the secure services
    Code Block
    steve-matyass-macbook-pro-2:build-po smatyas$ cd ../po-grid/
    steve-matyass-macbook-pro-2:po-grid smatyas$ pwd
    /Users/smatyas/dev/projects/coppa/code/po-grid
    steve-matyass-macbook-pro-2:po-grid smatyas$ ant runPersonClient
    ...
    
  4. Congratulations!