From 4e6510b5c7029a9c500c142c4bed7017ee9bb302 Mon Sep 17 00:00:00 2001 From: t3chn0m4g3 Date: Sat, 27 Jun 2020 00:37:12 +0000 Subject: [PATCH] dicompot tweaking --- docker/dicompot/Dockerfile | 6 ++---- docker/dicompot/docker-compose.yml | 1 + etc/compose/nextgen.yml | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/dicompot/Dockerfile b/docker/dicompot/Dockerfile index a47d3c1d..7fc9c2b3 100644 --- a/docker/dicompot/Dockerfile +++ b/docker/dicompot/Dockerfile @@ -14,12 +14,11 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \ cd /opt/go/ && \ git clone https://github.com/nsmfoo/dicompot.git && \ cd dicompot && \ - sed -i 's#dicompot.log#/var/log/dicompot/dicompot.log#g' server/server.go && \ go mod download && \ go install -a -x github.com/nsmfoo/dicompot/server && \ # # Setup dicompot - mkdir -p /opt/dicompot && \ + mkdir -p /opt/dicompot/images && \ cp /opt/go/bin/server /opt/dicompot && \ # # Setup user, groups and configs @@ -39,5 +38,4 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \ # Start dicompot WORKDIR /opt/dicompot USER dicompot:dicompot -#CMD ["./server","-ip","0.0.0.0","-log","/var/log/dicompot/dicompot.log"] -CMD ["./server","-ip","0.0.0.0"] +CMD ["./server","-ip","0.0.0.0","-dir","images","-log","/var/log/dicompot/dicompot.log"] diff --git a/docker/dicompot/docker-compose.yml b/docker/dicompot/docker-compose.yml index 5b70a514..c9e375ef 100644 --- a/docker/dicompot/docker-compose.yml +++ b/docker/dicompot/docker-compose.yml @@ -18,3 +18,4 @@ services: read_only: true volumes: - /data/dicompot/log:/var/log/dicompot +# - /path/to/dicom/images:/opt/dicompot/images diff --git a/etc/compose/nextgen.yml b/etc/compose/nextgen.yml index 20efc529..dc3fd920 100644 --- a/etc/compose/nextgen.yml +++ b/etc/compose/nextgen.yml @@ -190,6 +190,7 @@ services: read_only: true volumes: - /data/dicompot/log:/var/log/dicompot +# - /path/to/dicom/images:/opt/dicompot/images # Dionaea service dionaea: