Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F79738318
i2b2.rc
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 28, 00:11
Size
2 KB
Mime Type
text/x-shellscript
Expires
Fri, Aug 30, 00:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20224955
Attached To
R2664 SHRINE MedCo Fork
i2b2.rc
View Options
#!/bin/bash
#########
# I2B2 Environment variables
#
# You can install by setting the i2b2 IP address and then using defaults.
# You MUST change the default passwords for production operation.
#
# To include this script for your logon, you can add a line to your bash profile like this
# vi ~/.bashrc
#########
COMMON_RC_FILE=common.rc
if [ -f ~/${COMMON_RC_FILE} ] ; then
source ~/${COMMON_RC_FILE}
elif [ -f ../../${COMMON_RC_FILE} ] ; then
source ../../${COMMON_RC_FILE}
else
echo "Either ~/${COMMON_RC_FILE} or ../../${COMMON_RC_FILE} must be present" ; exit -1
fi
# at-a-glance way to check whether we're using Oracle or Postgres
export I2B2_RDBMS=postgres
#
#WILL NEED TO CHANGE IF NOT IN I2B2 VM
#The i2b2 user Shrine should log in as.
export SHRINE_USER=shrine
#The plaintext password for the i2b2 user Shrine should log in as.
export SHRINE_OBFUSCATED_WEBCLIENT_PASSWORD=demouser
#SHRINE_OBFUSCATED_WEBCLIENT_PASSWORD hashed with i2b2's password-hashing algorithm
if [ -f ../I2b2PasswordCryptor.java ] ; then
export SHRINE_PASSWORD_CRYPTED=`javac ../I2b2PasswordCryptor.java && java -classpath ../ I2b2PasswordCryptor ${SHRINE_OBFUSCATED_WEBCLIENT_PASSWORD}`
fi
#The directory containing the JBoss application server that i2b2 runs in.
export JBOSS_HOME=/opt/jboss
if [ ! -d $JBOSS_HOME ] ; then
# try alternative versioned JBoss directory (used by newer VM images)
export JBOSS_HOME=( ${JBOSS_HOME}* )
fi
#A directory inside JBoss where important files will go.
export JBOSS_DEPLOY_DIR="${JBOSS_HOME}/standalone/deployments"
# Unlike Oracle, psql should already be in $PATH (typically in /usr/bin)
# However, we will need to exec psql commands as the postgres user.
export I2B2_DB_PSQL_USER=postgres
#Postgres role for the i2b2 PM cell
export I2B2_DB_PM_USER=i2b2pm
export I2B2_DB_PM_PASSWORD=demouser
#Postgres role for the i2b2 Hive
export I2B2_DB_HIVE_USER=i2b2hive
export I2B2_DB_HIVE_PASSWORD=demouser
export I2B2_DB_HIVE_JDBC_URL=jdbc:postgresql://localhost/${I2B2_DB_HIVE_USER}
#Java DataSource name used by the i2b2 hive
export I2B2_DB_HIVE_DATASOURCE_NAME=OntologyBootStrapDS
#Postgres role for the i2b2 ontology cell
export I2B2_DB_ONT_USER=i2b2metadata
export I2B2_DB_ONT_PASSWORD=demouser
export I2B2_DB_ONT_JDBC_URL=jdbc:postgresql://localhost/${I2B2_DB_ONT_USER}
#Java DataSource name used by the i2b2 ontology cell
export I2B2_DB_ONT_DATASOURCE_NAME=OntologyDemoDS
#Postgres role for the Shrine ontology cell
export I2B2_DB_SHRINE_ONT_USER=shrine_ont
export I2B2_DB_SHRINE_ONT_PASSWORD=demouser
export I2B2_DB_SHRINE_ONT_JDBC_URL=jdbc:postgresql://localhost/${I2B2_DB_ONT_USER}
#Java DataSource name used by the Shrine ontology cell
export I2B2_DB_SHRINE_ONT_DATASOURCE_NAME=OntologyShrineDS
#Postgres role for the i2b2 CRC cell
export I2B2_DB_CRC_USER=i2b2demodata
#Java DataSource name used by the i2b2 CRC cell
export I2B2_DB_CRC_DATASOURCE_NAME=QueryToolDemoDS
#END THINGS THAT WILL NEED TO CHANGE
Event Timeline
Log In to Comment