User Acceptance Server Configuration
Tomcat
- https://confluence.atlassian.com/bamboocloud/using-tomcat-with-bamboo-for-continuous-deployment-737184091.html
- Bamboo Requires Tomcat 6 or 7 for task integration. We are using Tomcat 7.
- Add user <user username="bamboo" password="bamboo" roles="manager-script,manager-gut"/> to config/tomcat-users.xml
- modify conf/server.xml
- connection: 9080
- redirect: 9443
- shutdown: 9005
- setenv.sh
- hspc-reference-auth
export CATALINA_OPTS="$CATALINA_OPTS -Doidc.issuer=http://54.213.219.198:9080/hspc-reference-authorization/"
export CATALINA_OPTS="$CATALINA_OPTS -Doidc.datasource.mysql.url=jdbc:mysql://localhost/oic_uat"
export CATALINA_OPTS="$CATALINA_OPTS -DCONTEXT_FHIR_ENDPOINT=http://54.213.219.198:9080/hspc-reference-api/data"
export CATALINA_OPTS="$CATALINA_OPTS -DCONTEXT_RESOLVE_ENDPOINT=http://54.213.219.198:9080/hspc-reference-apps/static/"
- hspc-reference-api
export CATALINA_OPTS="$CATALINA_OPTS -Dapi.authorizationServerLaunchEndpointURL=http://54.213.219.198:9080/hspc-reference-authorization/Launch"
export CATALINA_OPTS="$CATALINA_OPTS -Dapi.authorizationTokenIntrospectionURL=http://54.213.219.198:9080/hspc-reference-authorization/introspect"
export CATALINA_OPTS="$CATALINA_OPTS -Dapi.metadata.tokenEndpointUri=http://54.213.219.198:9080/hspc-reference-authorization/token"
export CATALINA_OPTS="$CATALINA_OPTS -Dapi.metadata.authorizationEndpointUri=http://54.213.219.198:9080/hspc-reference-authorization/authorize"
export CATALINA_OPTS="$CATALINA_OPTS -Dapi.metadata.registrationEndpointUri=http://54.213.219.198:9080/hspc-reference-authorization/register"
export CATALINA_OPTS="$CATALINA_OPTS -Dapi.subscriptionSupport.enabled=false"
- hspc-appointment-viewer
export CATALINA_OPTS="$CATALINA_OPTS -Dappointmentview.redirectUri=http://54.213.219.198:9080/hspc-appointment-viewer/redirect"
export CATALINA_OPTS="$CATALINA_OPTS -Dappointmentview.appEntryPoint=http://54.213.219.198:9080/hspc-appointment-viewer/appointments"
- hspc-reference-auth
Linux
- Allow sudo from Bamboo SSH
- sudo visudo
- change "Defaults requiretty" to "Defaults !requiretty"
- sudo visudo
MySQL
- Post first deploy
- Create a database for oic_uat
- Modify the /usr/local/apache-tomcat-7.0.67/webapps/hspc-reference-authorization/WEB-INF/classes/db/mysql/mysql_clients.sql, replace USE oic; with "USE oic_uat;"
- Repeat for mysql_database_tables.sql, mysql_users.sql
- sudo vi /usr/local/apache-tomcat-7.0.67/webapps/hspc-reference-authorization/WEB-INF/classes/db/mysql/mysql_clients.sql
- :%s/localhost\:8080/54.213.219.198\:9080/g
- Install the OIC database as described here: Reference Authentication Application
- Modify the /usr/local/apache-tomcat-7.0.67/webapps/hspc-reference-authorization/WEB-INF/classes/db/mysql/mysql_clients.sql, replace USE oic; with "USE oic_uat;"
- Create a database for oic_uat