These instructions are written for pa-grid but apply to po-grid as well (change pa to po, etc, as needed).
Here are the relevant host names for local.properties if you want to run the service clients against any of the tiers (just uncomment the one you want):
#service.port=80
#service.hostname=ctms-services-pa-stage.nci.nih.gov
#service.hostname=ctms-services-pa-qa.nci.nih.gov
#service.hostname=ctms-services-pa-qa2.nci.nih.gov
#service.hostname=ctms-services-pa-dev.nci.nih.gov
#service.hostname=ctms-services-pa-integration.nci.nih.gov
#service.hostname=ctms-services-pa-demo.nci.nih.gov
#service.hostname=ctms-services-pa.nci.nih.gov
These instructions are written for developers of po-grid secure COPPA services on non-Windows (Linux / OSX) platforms.
To inform our developers how to develop on secure grid services.
steve-matyass-macbook-pro-2:cagrid smatyas$ pwd /Users/smatyas/dev/cagrid steve-matyass-macbook-pro-2:cagrid smatyas$ ll total 0 drwxr-xr-x 5 smatyas staff 170 Oct 7 11:42 . drwxr-xr-x 5 smatyas staff 170 Oct 7 11:41 .. drwxr-xr-x 17 smatyas staff 578 Oct 7 11:41 apache-ant-1.7.0 drwxr-xr-x 14 smatyas staff 476 Oct 15 12:56 caGrid drwxr-xr-x 20 smatyas staff 680 Oct 7 11:41 ws-core-4.0.3 steve-matyass-macbook-pro-2:cagrid smatyas$ set HOSTNAME=steve-matyass-macbook-pro-2.local |
steve-matyass-macbook-pro-2:~ smatyas$ echo $HOSTNAME steve-matyass-macbook-pro-2.local steve-matyass-macbook-pro-2:~ smatyas$ |
/O=caBIG/OU=caGrid/OU=Training/OU=Dorian/CN=matyass |
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. |
steve-matyass-macbook-pro-2:cagrid smatyas$ pwd /Users/smatyas/dev/cagrid/caGrid steve-matyass-macbook-pro-2:caGrid smatyas$ ant security ... |
Credential Provider: Training Organization: Training Username: coppagridtest Password: Coppa#12345 |
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} |
steve-matyass-macbook-pro-2:~ smatyas$ echo $HOSTNAME steve-matyass-macbook-pro-2.local steve-matyass-macbook-pro-2:~ smatyas$ |
steve-matyass-macbook-pro-2:~ smatyas$ echo $GLOBUS_LOCATION /Users/smatyas/dev/cagrid/ws-core-4.0.3 |
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 ... |
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 ... |
If anyone can improve the SQL to simply insertion, please do. |
--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); |