File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ RUN apt-get update -qq \
19
19
&& git checkout v1.0.20220720 \
20
20
&& mkdir /tmp/dcm2niix/build \
21
21
&& cd /tmp/dcm2niix/build \
22
- && cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 .. \
22
+ && cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 .. \
23
23
&& make -j1 \
24
24
&& make install \
25
25
&& rm -rf /tmp/dcm2niix
@@ -68,6 +68,7 @@ RUN apt-get update -qq \
68
68
"numpy" \
69
69
"nomkl" \
70
70
"pandas" \
71
+ "gdcm" \
71
72
&& bash -c "source activate base \
72
73
&& python -m pip install --no-cache-dir --editable \
73
74
" /src/heudiconv[all]"" \
@@ -98,7 +99,7 @@ RUN printf '{ \
98
99
{ \
99
100
"name": "run", \
100
101
"kwds": { \
101
- "command": "apt-get update -qq\\ napt-get install -y -q --no-install-recommends \\\\\\ n ca-certificates \\\\\\ n cmake \\\\\\ n g++ \\\\\\ n gcc \\\\\\ n git \\\\\\ n make \\\\\\ n pigz \\\\\\ n zlib1g-dev\\ nrm -rf /var/lib/apt/lists/*\\ ngit clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix\\ ncd /tmp/dcm2niix\\ ngit fetch --tags\\ ngit checkout v1.0.20220720\\ nmkdir /tmp/dcm2niix/build\\ ncd /tmp/dcm2niix/build\\ ncmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 ..\\ nmake -j1\\ nmake install\\ nrm -rf /tmp/dcm2niix" \
102
+ "command": "apt-get update -qq\\ napt-get install -y -q --no-install-recommends \\\\\\ n ca-certificates \\\\\\ n cmake \\\\\\ n g++ \\\\\\ n gcc \\\\\\ n git \\\\\\ n make \\\\\\ n pigz \\\\\\ n zlib1g-dev\\ nrm -rf /var/lib/apt/lists/*\\ ngit clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix\\ ncd /tmp/dcm2niix\\ ngit fetch --tags\\ ngit checkout v1.0.20220720\\ nmkdir /tmp/dcm2niix/build\\ ncd /tmp/dcm2niix/build\\ ncmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 ..\\ nmake -j1\\ nmake install\\ nrm -rf /tmp/dcm2niix" \
102
103
} \
103
104
}, \
104
105
{ \
@@ -142,7 +143,7 @@ RUN printf '{ \
142
143
{ \
143
144
"name": "run", \
144
145
"kwds": { \
145
- "command": "apt-get update -qq\\napt-get install -y -q --no-install-recommends \\\\\\n bzip2 \\\\\\n ca-certificates \\\\\\n curl\\nrm -rf /var/lib/apt/lists/*\\n# Install dependencies.\\nexport PATH=\\"/opt/miniconda-py39_4.12.0/bin:$PATH\\"\\necho \\"Downloading Miniconda installer ...\\"\\nconda_installer=\\"/tmp/miniconda.sh\\"\\ncurl -fsSL -o \\"$conda_installer\\" https://repo.continuum.io/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh\\nbash \\"$conda_installer\\" -b -p /opt/miniconda-py39_4.12.0\\nrm -f \\"$conda_installer\\"\\n# Prefer packages in conda-forge\\nconda config --system --prepend channels conda-forge\\n# Packages in lower-priority channels not considered if a package with the same\\n# name exists in a higher priority channel. Can dramatically speed up installations.\\n# Conda recommends this as a default\\n# https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html\\nconda config --set channel_priority strict\\nconda config --system --set auto_update_conda false\\nconda config --system --set show_channel_urls true\\n# Enable `conda activate`\\nconda init bash\\nconda install -y --name base \\\\\\n \\"python=3.9\\" \\\\\\n \\"traits>=4.6.0\\" \\\\\\n \\"scipy\\" \\\\\\n \\"numpy\\" \\\\\\n \\"nomkl\\" \\\\\\n \\"pandas\\"\\nbash -c \\"source activate base\\n python -m pip install --no-cache-dir --editable \\\\\\n \\"/src/heudiconv[all]\\"\\"\\n# Clean up\\nsync && conda clean --all --yes && sync\\nrm -rf ~/.cache/pip/*" \
146
+ "command": "apt-get update -qq\\napt-get install -y -q --no-install-recommends \\\\\\n bzip2 \\\\\\n ca-certificates \\\\\\n curl\\nrm -rf /var/lib/apt/lists/*\\n# Install dependencies.\\nexport PATH=\\"/opt/miniconda-py39_4.12.0/bin:$PATH\\"\\necho \\"Downloading Miniconda installer ...\\"\\nconda_installer=\\"/tmp/miniconda.sh\\"\\ncurl -fsSL -o \\"$conda_installer\\" https://repo.continuum.io/miniconda/Miniconda3-py39_4.12.0-Linux-x86_64.sh\\nbash \\"$conda_installer\\" -b -p /opt/miniconda-py39_4.12.0\\nrm -f \\"$conda_installer\\"\\n# Prefer packages in conda-forge\\nconda config --system --prepend channels conda-forge\\n# Packages in lower-priority channels not considered if a package with the same\\n# name exists in a higher priority channel. Can dramatically speed up installations.\\n# Conda recommends this as a default\\n# https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html\\nconda config --set channel_priority strict\\nconda config --system --set auto_update_conda false\\nconda config --system --set show_channel_urls true\\n# Enable `conda activate`\\nconda init bash\\nconda install -y --name base \\\\\\n \\"python=3.9\\" \\\\\\n \\"traits>=4.6.0\\" \\\\\\n \\"scipy\\" \\\\\\n \\"numpy\\" \\\\\\n \\"nomkl\\" \\\\\\n \\"pandas\\" \\\\\\n \\"gdcm\\"\\nbash -c \\"source activate base\\n python -m pip install --no-cache-dir --editable \\\\\\n \\"/src/heudiconv[all]\\"\\"\\n# Clean up\\nsync && conda clean --all --yes && sync\\nrm -rf ~/.cache/pip/*" \
146
147
} \
147
148
}, \
148
149
{ \
Original file line number Diff line number Diff line change @@ -7,12 +7,26 @@ VER=$(grep -Po '(?<=^__version__ = ).*' $thisd/../heudiconv/info.py | sed 's/"//
7
7
8
8
image=" kaczmarj/neurodocker:0.9.1"
9
9
10
- docker run --rm $image generate docker -b neurodebian:bullseye -p apt \
11
- --dcm2niix version=v1.0.20220720 method=source \
12
- --install git gcc pigz liblzma-dev libc-dev git-annex-standalone netbase \
10
+ docker run --rm $image generate docker \
11
+ --base-image neurodebian:bullseye \
12
+ --pkg-manager apt \
13
+ --dcm2niix \
14
+ version=v1.0.20220720 \
15
+ method=source \
16
+ cmake_opts=" -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON" \
17
+ --install \
18
+ git \
19
+ gcc \
20
+ pigz \
21
+ liblzma-dev \
22
+ libc-dev \
23
+ git-annex-standalone \
24
+ netbase \
13
25
--copy . /src/heudiconv \
14
- --miniconda version=" py39_4.12.0" conda_install=" python=3.9 traits>=4.6.0 scipy numpy nomkl pandas" \
15
- pip_install=" /src/heudiconv[all]" \
16
- pip_opts=" --editable" \
26
+ --miniconda \
27
+ version=" py39_4.12.0" \
28
+ conda_install=" python=3.9 traits>=4.6.0 scipy numpy nomkl pandas gdcm" \
29
+ pip_install=" /src/heudiconv[all]" \
30
+ pip_opts=" --editable" \
17
31
--entrypoint " heudiconv" \
18
32
> $thisd /../Dockerfile
You can’t perform that action at this time.
0 commit comments