-
Notifications
You must be signed in to change notification settings - Fork 48
Running Docker image locally
Dusan Zelembaba edited this page Sep 1, 2020
·
4 revisions
Unlike gce/gke, simple docker run doesn't automatically handle google authentication credentials. Solution is to mount local credentials file as a volume:
-v /path/to/google_credentials.json:/credentials -e GOOGLE_APPLICATION_CREDENTIALS='/credentials'
Import adapter also needs AET dictionary JSON to support C-MOVE and Storage Commitment service:
-v /path/to/AETs.json:/AETs
Example of full command:
docker run \
-p 2579:2579 \
-v /path/to/google_credentials.json:/credentials -e GOOGLE_APPLICATION_CREDENTIALS='/credentials' \
-v /path/to/AETs.json:/AETs \
${TAG} \
gcr.io/cloud-healthcare-containers/healthcare-api-dicom-dicomweb-adapter-import:0.2.15 \
--aet_dictionary=/AETs \
--dimse_aet=IMPORTADAPTER \
--dimse_port=2579 \
--dicomweb_address=https://healthcare.googleapis.com/v1beta1/projects/${PROJECT}/locations/${LOCATION}/datasets/${DATASET}/dicomStores/${DICOMSTORE}/dicomWeb \
--oauth_scopes=https://www.googleapis.com/auth/cloud-platform \
--monitoring_project_id=${PROJECT} \
--verbose