Skip to content

Commit b1b4ca5

Browse files
committed
factored out streamer username/password
1 parent 47b6b2f commit b1b4ca5

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

docker/docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ services:
2525
- ${VOL_ORTHANC_DB:-vol-orthanc-db}:/var/lib/orthanc/db
2626
- ${VOL_ORTHANC_IDX:-vol-orthanc-idx}:/var/lib/orthanc/idx
2727
environment:
28-
- STREAMER_URL=http://streamer:3001
28+
- STREAMER_URL=${STREAMER_URL:-http://streamer:3001}
29+
- STREAMER_USERNAME=${STREAMER_USERNAME}
30+
- STREAMER_PASSWORD=${STREAMER_PASSWORD}
2931
wlbroker:
3032
build:
3133
context: ./wlbroker

docker/env.example

+9
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,12 @@
3434

3535
## volume for cal2wl configurations, read-only bind mounted to /opt/config
3636
#VOL_CAL2WL_CONFIG=./cal2wl/config
37+
38+
## STEAMER URL
39+
#STREAMER_URL=http://streamer:3001
40+
41+
## STEAMER USERNAME
42+
#STREAMER_USERNAME=admin
43+
44+
## STEAMER PASSWORD
45+
#STREAMER_PASSWORD=admin

docker/orthanc/scripts/writeSeriesToProject.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ function submitStreamerJob(seriesId)
22
-- submit a stager job to upload series data to RDM
33
local url = os.getenv('STREAMER_URL') .. '/mri/series/' .. seriesId
44

5-
SetHttpCredentials('admin', 'admin')
5+
SetHttpCredentials(os.getenv('STREAMER_USERNAME'), os.getenv('STREAMER_PASSWORD'))
66

77
local answer = HttpPost(url, nil)
88
if answer == nil or answer == '' then

0 commit comments

Comments
 (0)