Skip to content

Commit 6108769

Browse files
committed
SSS-155
adapting sss docker stuff
1 parent ef6e092 commit 6108769

File tree

3 files changed

+211
-1
lines changed

3 files changed

+211
-1
lines changed
Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
!!at.kc.tugraz.ss.conf.conf.SSMainConf
2+
#core services
3+
sss:
4+
version: x.x.x
5+
host: 127.0.0.1
6+
port: 8390
7+
localWorkPath: #leave empty for workingDir/tmp
8+
dbSQL: !!at.kc.tugraz.ss.serv.db.conf.SSDBSQLConf
9+
host: SSS_MYSQL_HOST
10+
port: SSS_MYSQL_PORT
11+
username: SSS_MYSQL_USERNAME
12+
password: SSS_MYSQL_PASSWORD
13+
schema: SSS_MYSQL_SCHEME
14+
voc:
15+
use: true
16+
auth:
17+
authType: SSS_AUTH_TYPE #noAuth, csvFileAuth, oidc
18+
initAtStartUp: true
19+
fileName: users.csv
20+
systemUserPassword: 1234
21+
entity:
22+
use: true
23+
circle:
24+
use: true
25+
jsonLD:
26+
uri:
27+
eval:
28+
tools:
29+
#- leave empty for no tool usage to be traced
30+
- bnp
31+
32+
#services
33+
like:
34+
use: true
35+
video:
36+
use: true
37+
appStackLayout:
38+
use: true
39+
friend:
40+
use: true
41+
app:
42+
use: true
43+
message:
44+
use: true
45+
cloud:
46+
use: false
47+
comment:
48+
use: true
49+
i5Cloud:
50+
use: true
51+
op: #i5CloudAuth, i5CloudUploadFile, i5CloudFileDownload
52+
uri: #http://137.226.58.11:8081/i5Cloud/services/4/
53+
userLabel: SSS_TETHYS_USER
54+
pass: SSS_TETHYS_PASSSWORD
55+
lasUser: SSS_TETHYS_LAS_USER
56+
lasPass: SSS_TETHYS_LAS_PASSWORD
57+
oidcConfURI: SSS_TETHYS_OIDC_CONF_URI #https://api.learning-layers.eu/o/oauth2/.well-known/openid-configuration #http://10.255.255.17/o/oauth2/.well-known/openid-configuration
58+
oidcUserEndPointURI: SSS_TETHYS_OIDC_USER_END_POINT_URI #https://api.learning-layers.eu/o/oauth2/userinfo #http://10.255.255.17/o/oauth2/userinfo
59+
model:
60+
use: false
61+
filerepo:
62+
use: true
63+
path: #leave empty for workingDir/tmp; http://127.0.0.1:80/webdav/knowBrainWeb/
64+
fileRepoType: fileSys #fileSys, webdav, solr, i5Cloud
65+
user: #wduza
66+
password: #w!123a scaff
67+
solr:
68+
use: false
69+
path: http://path_to_solr/solr/
70+
fileRepoType: solr #fileSys, webdav, solr
71+
user:
72+
password:
73+
broadcaster:
74+
use: true
75+
dataExport:
76+
use: true
77+
fileNameForUserRelationsExport: userRelations.txt
78+
user:
79+
use: true
80+
coll:
81+
use: true
82+
ue:
83+
use: true
84+
rating:
85+
use: true
86+
tag:
87+
use: true
88+
search:
89+
use: true
90+
disc:
91+
use: true
92+
learnEp:
93+
use: true
94+
useEpisodeLocking: true
95+
recomm: #files have to be provided in sss's_working_dir/data/csv/
96+
use: true
97+
initAtStartUp: true
98+
initAtStartUpOps:
99+
- recommUpdate
100+
schedule: true
101+
executeScheduleAtStartUp: false
102+
scheduleOps:
103+
- recommUpdate
104+
scheduleIntervals:
105+
- 10
106+
fileNameForRec: sss_recomm
107+
usePrivateTagsToo: true
108+
recommTagAlgorithm: BLL #BLL, BLLacMPr
109+
recommResourceAlgorithm: RESOURCETAGCB #RESOURCECF, RESOURCETAGCB
110+
recommUserAlgorithm: USERTAGCB #USERTAGCB
111+
recommTagsGroups:
112+
#log:
113+
# use: false
114+
#fileSysLocal:
115+
# use: false
116+
#lomExtractor:
117+
# use: false
118+
evernote:
119+
use: true
120+
companyName: TU Graz
121+
appName: SSS
122+
appVersion: 1.0
123+
evernoteEnvironment: production #sandbox, production
124+
authTokens:
125+
authEmails:
126+
dataImport:
127+
use: true
128+
initAtStartUp: false
129+
initAtStartUpOps:
130+
- dataImportEvernote
131+
schedule: false
132+
executeScheduleAtStartUp: false
133+
scheduleOps:
134+
- dataImportEvernote
135+
scheduleIntervals:
136+
- 60
137+
fileName: #ssRecommLanguageModelData.txt #file has to be provided in in SSS/ss/src/main/resources/data/csv/ or to be written in sss's_working_dir/data/csv/
138+
activity:
139+
use: true
140+
op: #activitiesUserGet
141+
category:
142+
use: true
143+
initAtStartUp: true
144+
predefinedCategories:
145+
- Knowledge, skills and performance
146+
- Maintain your professional performance
147+
- Apply knowledge and experience to practice
148+
- Ensure that all documentation formally recording your work is clear, accurate and legible
149+
- Safety and quality
150+
- Contribute to and comply with systems to protect patients
151+
- Respond to risks to safety
152+
- Protect patients and colleagues from any risk posed by your health
153+
- Communication, partnership and teamwork
154+
- Communicate effectively
155+
- Work constructively with colleagues and delegate effectively
156+
- Establish and maintain partnerships with patients
157+
- Maintaining trust
158+
- Show respect for patients
159+
- Treat patients and colleagues fairly and without discrimination
160+
- Act with honesty and integrity
161+
- Respecting and involving people who use services
162+
- Consent to care and treatment
163+
- Care and welfare of people who use services
164+
- Meeting nutritional needs
165+
- Cooperating with other providers
166+
- Safeguarding people who use services from abuse
167+
- Cleanliness and infection control
168+
- Management of medicines
169+
- Safety and suitability of premises
170+
- Safety, availability and suitability of equipment
171+
- Requirements relating to workers
172+
- Staffing
173+
- Supporting workers
174+
- Assessing and monitoring the quality of service provision
175+
- Complaints
176+
- Records
177+
flag:
178+
use: true

sss/src/main/resources/conf/docker.sss/sss.sss.docker.entrypoint.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,22 @@ trap 'exit' ERR
44
trap "echo TRAPed signal" HUP INT QUIT KILL TERM
55

66
cd /sss.app/
7+
8+
sed -i "s#SSS_MYSQL_HOST#${SSS_MYSQL_HOST}#g" /sss.app/sss.conf.yaml &&
9+
sed -i "s#SSS_MYSQL_PORT#${SSS_MYSQL_PORT}#g" /sss.app/sss.conf.yaml &&
10+
sed -i "s#SSS_MYSQL_USERNAME#${SSS_MYSQL_USERNAME}#g" /sss.app/sss.conf.yaml &&
11+
sed -i "s#SSS_MYSQL_PASSWORD#${SSS_MYSQL_PASSWORD}#g" /sss.app/sss.conf.yaml &&
12+
sed -i "s#SSS_MYSQL_SCHEME#${SSS_MYSQL_SCHEME}#g" /sss.app/sss.conf.yaml &&
13+
14+
sed -i "s#SSS_AUTH_TYPE#${SSS_AUTH_TYPE}#g" /sss.app/sss.conf.yaml &&
15+
16+
sed -i "s#SSS_TETHYS_USER#${SSS_TETHYS_USER}#g" /sss.app/sss.conf.yaml &&
17+
sed -i "s#SSS_TETHYS_PASSWORD#${SSS_TETHYS_PASSWORD}#g" /sss.app/sss.conf.yaml &&
18+
sed -i "s#SSS_TETHYS_LAS_USER#${SSS_TETHYS_LAS_USER}#g" /sss.app/sss.conf.yaml &&
19+
sed -i "s#SSS_TETHYS_LAS_PASSWORD#${SSS_TETHYS_LAS_PASSWORD}#g" /sss.app/sss.conf.yaml &&
20+
sed -i "s#SSS_TETHYS_OIDC_CONF_URI#${SSS_TETHYS_OIDC_CONF_URI}#g" /sss.app/sss.conf.yaml &&
21+
sed -i "s#SSS_TETHYS_OIDC_USER_END_POINT_URI#${SSS_TETHYS_OIDC_USER_END_POINT_URI}#g" /sss.app/sss.conf.yaml &&
22+
723
java -jar -Dlog4j.configuration=file:log4j.properties sss.jar
824

925
read
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
echo run sss container
22
docker stop sss.sss
33
docker rm sss.sss
4-
docker run -p 8391:8390 --name sss.sss ssss/sss.sss
4+
docker run \
5+
-d \
6+
-e "SSS_MYSQL_HOST=db_host" \
7+
-e "SSS_MYSQL_PORT=3333" \
8+
-e "SSS_MYSQL_USERNAME=sss" \
9+
-e "SSS_MYSQL_PASSWORD=sss" \
10+
-e "SSS_MYSQL_SCHEME=sss" \
11+
-e "SSS_AUTH_TYPE=csvFileAuth" \
12+
-e "SSS_TETHYS_USER=tethys_user" \
13+
-e "SSS_TETHYS_PASSSWORD=tethys_password" \
14+
-e "SSS_TETHYS_LAS_USER=sss" \
15+
-e "SSS_TETHYS_LAS_PASSWORD=sss" \
16+
-e "SSS_TETHYS_OIDC_CONF_URI=https://api.learning-layers.eu/o/oauth2/.well-known/openid-configuration" \
17+
-e "SSS_TETHYS_OIDC_USER_END_POINT_URI=https://api.learning-layers.eu/o/oauth2/userinfo" \
18+
-p 8391:8390 \
19+
--name sss.sss \
20+
ssss/sss.sss

0 commit comments

Comments
 (0)