-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecrets.template
208 lines (156 loc) · 5.18 KB
/
secrets.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
#######################
# Nom des sources i2b2
export i2b2_SOURCE_FILE_NAME=i2b2core-src-1709c
#######################
# Nom du dossier après extraction
#i2b2_SOURCE_DIR_NAME=i2b2-core-server-master
export i2b2_SOURCE_DIR_NAME=i2b2-core-server
##########################
# Paramètre de JBOSS
export JBOSS_HOME_DOCKER=/opt/jboss/wildfly
export JBOSS_PORT=8080
#####################
# Chemin de destination des fichier de complilation
export JBOSS_HOME_COMPILE=/opt/deployments
##################
# Chemin de ant sur le server
export ANT_HOME=/opt/ant/
###########################
#
#Paramètre serveur de base de donnée
##
export I2B2_DB_HOST=i2b2db
export I2B2_DB_PORT=5432
export POSTGRES_DB=i2b2
export CON_URL=jdbc:postgresql://$I2B2_DB_HOST:$I2B2_DB_PORT/i2b2
export DB_DRIVER_CLASS=org.postgresql.Driver
export DB_DRIVER=postgresql-42.1.4.jar
export SERVER_TYPE=postgresql
export POSTGRES_USER=i2b2
export POSTGRES_PASSWORD=i2b2 # Should be changed !!!!!
# Host et port des services
export I2B2_HOST=i2b2app
export I2B2_PORT=8080
#pm cell
export PM_HOST=$I2B2_HOST
export PM_PORT=$I2B2_PORT
#ontologie cell
export ONT_HOST=$I2B2_HOST
export ONT_PORT=$I2B2_PORT
#crc cell
export CRC_HOST=$I2B2_HOST
export CRC_PORT=$I2B2_PORT
#file repository cell
export FR_HOST=$I2B2_HOST
export FR_PORT=$I2B2_PORT
#worlplace cell
export WORK_HOST=$I2B2_HOST
export WORK_PORT=$I2B2_PORT
#Host du weblcient i2b2
export WEBCLIENT_HOST=webserver #host accessible within the compose stack
export WEBCLIENT_PORT=80
################################
# Connexion aux schema
#hive
export i2b2_db_user_HIVE=i2b2hive
export i2b2_db_pass_HIVE=demouser # Should be changed !!!!!
export i2b2_db_schema_HIVE=i2b2hive
#pm
export i2b2_db_user_PM=i2b2pm
export i2b2_db_pass_PM=demouser # Should be changed !!!!!
export i2b2_db_schema_PM=i2b2pm
#crc
export i2b2_db_user_CRC=i2b2demodata
export i2b2_db_pass_CRC=demouser # Should be changed !!!!!
export i2b2_db_schema_CRC=i2b2demodata
#ontology
export i2b2_db_user_ONT=i2b2metadata
export i2b2_db_pass_ONT=demouser # Should be changed !!!!!
export i2b2_db_schema_ONT=i2b2metadata
#workplace
export i2b2_db_user_WORK=i2b2workdata
export i2b2_db_pass_WORK=demouser # Should be changed !!!!!
export i2b2_db_schema_WORK=i2b2workdata
#IM
export i2b2_db_user_IM=i2b2imdata
export i2b2_db_pass_IM=demouser # Should be changed !!!!!
export i2b2_db_schema_IM=i2b2imdata
##### Compte i2b2 #######
export i2b2_AGGSERVICE_user=AGG_SERVICE_ACCOUNT
export i2b2_AGGSERVICE_pass=demouser # Should be changed !!!!!
########################
#
# I2B2 USER AND PASSWORD AND DOMAIN (FOR SHRINE TO ACCESS CRC)
#
export db_project=demo #for i2b2demodata install (ant parameter)
export I2B2_DOMAIN=i2b2demo
export I2B2_CRC_PROJECT_ID=Demo
# basic I2b2 user with obuscated right
export I2B2_USER=demo
export I2B2_PASSWORD=demouser # Should be changed !!!!!
# Admin user ==> Sensitive data !!!!! Must be MODIFIED !!!!!
export I2B2_ADMIN=i2b2
export I2B2_ADMIN_PASSWORD=demouser # Should be changed !!!!!
####################
#
# Shrine
#
####################
export NODE_NAME=hub #human readable node
export SHRINE_HOST=localhost #public accessible host (domain name without https://) example "osiris.test.org"
export SHRINE_PORT=6443
# Can be modified in case you want to acces your shrine webclient in a private network with a different hostname and port
# These param will be used by the steward in order to retrieve topics (the steward must be accessible from within the corresponding network)
export SHRINE_WEBCLIENT_HOST=$SHRINE_HOST #public accessible host for the shrine webclient (can be in a private network)
export SHRINE_WEBCLIENT_PORT=$SHRINE_PORT
#Is shrine a hub ?
export IS_HUB=true # true or false
############################
#
# Shrine hub
#
export SHRINE_HUB_HOST=localhost #public accessible host (domain)
export SHRINE_HUB_PORT=6443
#######################
#
# Keystore
#
export KEYSTORE_ALIAS=$SHRINE_HOST #To be changed if you want to use another certificate for serving https
export KEYSTORE_HUMAN=shrinehub
export KEYSTORE_CITY=Paris
export KEYSTORE_STATE="France"
export KEYSTORE_COUNTRY="France"
export KEYSTORE_PASSWORD="password" # Should be changed !!!!!
export KEYSTORE_FILE=shrine.keystore
##############################
#
# Shrine db
#
export SHRINE_DB_HOST=shrinedb
export SHRINE_DB_PORT=3306
# Mysql user
export MYSQL_USER=shrine
export MYSQL_PASSWORD=demouser # Should be changed !!!!!
export MYSQL_ROOT_PASSWORD=shrine
#posgres user
export SHRINE_ONT_DB_USER=shrine_ont
export SHRINE_ONT_DB_PASSWORD=demouser # Should be changed !!!!!
export SHRINE_ONT_DB_SCHEMA=shrine_ont
################################
#
# Shrine user and password and domain
#
export SHRINE_ONT_PROJECT_ID=SHRINE
export SHRINE_USER=shrine
export SHRINE_USER_PASSWORD=password # Should be changed !!!!!
export SHRINE_CRC_USER=demo
export SHRINE_CRC_PASSWORD=demouser # Should be changed !!!!!
export QEP_PASSWORD=password # Should be changed !!!!!
export STEWARD_PASSWORD=password # Should be changed !!!!!
################# END OF PARAMETERS ########################
echo "hub $HUB"
if [ "$IS_HUB" = "true" ] && [ "$HUB" = "false" ]; then
export KEYSTORE_ALIAS="shrinelocal"
echo 'is HUB ==> TRUE'
echo "KEYSTORE_ALIAS = $KEYSTORE_ALIAS"
fi