-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
63 lines (46 loc) · 1.82 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:bionic
LABEL author=yinglilu@gmail.com
LABEL maintainer=isolove@uwo.ca
LABEL version=0.0.3
#needed for keytool
RUN if [ ! -e /dev/fd ]; then ln -s /proc/self/fd /dev/fd; fi
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils \
sudo \
git \
wget \
curl \
zip \
unzip \
python2.7 \
python-pip \
rsync \
openssh-client
RUN pip install --upgrade pip && pip install --upgrade setuptools
# dcm4che requires JRE
# enable TLSv1.1 for dcm4chee v2
RUN apt-get install -y default-jre && sed -i 's/TLSv1.1, //g' /etc/java-11-openjdk/security/java.security
# Copy files from repo
COPY *.py /apps/cfmm2tar/
#for some unknown reason, need change the mode:
RUN chmod a+x /apps/cfmm2tar/*.py
#dicomunwrap, will install pydicom
RUN cd /apps && git clone https://gitlab.com/cfmm/DicomRaw && cd DicomRaw && pip install -r requirements.txt
COPY *.sh /src/
#install dcm4che
ENV DCM4CHE_VERSION=5.24.1
RUN cd /src && bash install_dcm4che_ubuntu.sh /opt
#For retrieving physio dicom files. without this line, all the physio series will not be retrieved with getscu
RUN echo '1.3.12.2.1107.5.9.1:ImplicitVRLittleEndian;ExplicitVRLittleEndian' >>/opt/dcm4che/etc/getscu/store-tcs.properties
#allow the getscu client to download CFMM's 9.4T data.
RUN echo 'EnhancedMRImageStorage:ImplicitVRLittleEndian;ExplicitVRLittleEndian'>>/opt/dcm4che/etc/getscu/store-tcs.properties
COPY cfmm2tar /apps/cfmm2tar/
# env vars:
ENV PATH=/apps/DicomRaw/bin:/opt/dcm4che/bin:/apps/cfmm2tar:$PATH
ENV _JAVA_OPTIONS="-Xmx2048m"
# dcm4chee v2 server
#ENV DICOM_CONNECTION=CFMM-Public@dicom.cfmm.uwo.ca:11112
#ENV OTHER_OPTIONS='--tls11 --tls-cipher=TLS_RSA_WITH_AES_128_CBC_SHA'
# dcm4chee v5 server
ENV DICOM_CONNECTION=CFMM@dicom.cfmm.uwo.ca:11112
ENV OTHER_OPTIONS='--tls-aes'
ENTRYPOINT ["/apps/cfmm2tar/cfmm2tar"]