mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-01 20:42:11 +00:00
dicompot tweaking
This commit is contained in:
parent
16a7cdb975
commit
4e6510b5c7
3 changed files with 4 additions and 4 deletions
|
@ -14,12 +14,11 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
||||||
cd /opt/go/ && \
|
cd /opt/go/ && \
|
||||||
git clone https://github.com/nsmfoo/dicompot.git && \
|
git clone https://github.com/nsmfoo/dicompot.git && \
|
||||||
cd dicompot && \
|
cd dicompot && \
|
||||||
sed -i 's#dicompot.log#/var/log/dicompot/dicompot.log#g' server/server.go && \
|
|
||||||
go mod download && \
|
go mod download && \
|
||||||
go install -a -x github.com/nsmfoo/dicompot/server && \
|
go install -a -x github.com/nsmfoo/dicompot/server && \
|
||||||
#
|
#
|
||||||
# Setup dicompot
|
# Setup dicompot
|
||||||
mkdir -p /opt/dicompot && \
|
mkdir -p /opt/dicompot/images && \
|
||||||
cp /opt/go/bin/server /opt/dicompot && \
|
cp /opt/go/bin/server /opt/dicompot && \
|
||||||
#
|
#
|
||||||
# Setup user, groups and configs
|
# Setup user, groups and configs
|
||||||
|
@ -39,5 +38,4 @@ RUN sed -i 's/dl-cdn/dl-2/g' /etc/apk/repositories && \
|
||||||
# Start dicompot
|
# Start dicompot
|
||||||
WORKDIR /opt/dicompot
|
WORKDIR /opt/dicompot
|
||||||
USER dicompot:dicompot
|
USER dicompot:dicompot
|
||||||
#CMD ["./server","-ip","0.0.0.0","-log","/var/log/dicompot/dicompot.log"]
|
CMD ["./server","-ip","0.0.0.0","-dir","images","-log","/var/log/dicompot/dicompot.log"]
|
||||||
CMD ["./server","-ip","0.0.0.0"]
|
|
||||||
|
|
|
@ -18,3 +18,4 @@ services:
|
||||||
read_only: true
|
read_only: true
|
||||||
volumes:
|
volumes:
|
||||||
- /data/dicompot/log:/var/log/dicompot
|
- /data/dicompot/log:/var/log/dicompot
|
||||||
|
# - /path/to/dicom/images:/opt/dicompot/images
|
||||||
|
|
|
@ -190,6 +190,7 @@ services:
|
||||||
read_only: true
|
read_only: true
|
||||||
volumes:
|
volumes:
|
||||||
- /data/dicompot/log:/var/log/dicompot
|
- /data/dicompot/log:/var/log/dicompot
|
||||||
|
# - /path/to/dicom/images:/opt/dicompot/images
|
||||||
|
|
||||||
# Dionaea service
|
# Dionaea service
|
||||||
dionaea:
|
dionaea:
|
||||||
|
|
Loading…
Reference in a new issue