Skip to content

Commit 3559616

Browse files
author
Jakub Kaczmarzyk
committed
enh: use base conda env + conda install numpy and scipy
1 parent e4a5551 commit 3559616

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

Dockerfile

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated by Neurodocker version 0.4.1
2-
# Timestamp: 2018-11-01 18:20:45 UTC
1+
# Generated by Neurodocker version 0.4.1-28-g83dbc15
2+
# Timestamp: 2018-11-01 21:17:58 UTC
33
#
44
# Thank you for using Neurodocker. If you discover any issues
55
# or ways to improve this software, please submit an issue or
@@ -88,19 +88,20 @@ RUN export PATH="/opt/miniconda-latest/bin:$PATH" \
8888
&& conda config --system --set auto_update_conda false \
8989
&& conda config --system --set show_channel_urls true \
9090
&& sync && conda clean -tipsy && sync \
91-
&& conda create -y -q --name neuro \
92-
&& conda install -y -q --name neuro \
91+
&& conda install -y -q --name base \
9392
python=3.6 \
9493
traits>=4.6.0 \
94+
scipy \
95+
numpy \
96+
nomkl \
9597
&& sync && conda clean -tipsy && sync \
96-
&& bash -c "source activate neuro \
97-
&& pip install --no-cache-dir \
98+
&& bash -c "source activate base \
99+
&& pip install --no-cache-dir \
98100
/src/heudiconv[all]" \
99101
&& rm -rf ~/.cache/pip/* \
100-
&& sync \
101-
&& sed -i '$isource activate neuro' $ND_ENTRYPOINT
102+
&& sync
102103

103-
ENTRYPOINT ["/neurodocker/startup.sh", "heudiconv"]
104+
ENTRYPOINT ["heudiconv"]
104105

105106
RUN echo '{ \
106107
\n "pkg_manager": "apt", \
@@ -137,20 +138,22 @@ RUN echo '{ \
137138
\n [ \
138139
\n "miniconda", \
139140
\n { \
140-
\n "create_env": "neuro", \
141+
\n "use_env": "base", \
141142
\n "conda_install": [ \
142143
\n "python=3.6", \
143-
\n "traits>=4.6.0" \
144+
\n "traits>=4.6.0", \
145+
\n "scipy", \
146+
\n "numpy", \
147+
\n "nomkl" \
144148
\n ], \
145-
\n "activate": true, \
146149
\n "pip_install": [ \
147150
\n "/src/heudiconv[all]" \
148151
\n ] \
149152
\n } \
150153
\n ], \
151154
\n [ \
152155
\n "entrypoint", \
153-
\n "/neurodocker/startup.sh heudiconv" \
156+
\n "heudiconv" \
154157
\n ] \
155158
\n ] \
156159
\n}' > /neurodocker/neurodocker_specs.json

utils/gen-docker-image.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ set -eu
44

55
VER=$(grep -Po '(?<=^__version__ = ).*' ../heudiconv/info.py | sed 's/"//g')
66

7-
docker run --rm kaczmarj/neurodocker:0.4.1 generate docker -b neurodebian:stretch -p apt \
7+
image="kaczmarj/neurodocker:master@sha256:9f7d58f6977cfcd4dd5d1a2e70be4124417206b716d51b7d9a182820157f1bd3"
8+
9+
docker run --rm $image generate docker -b neurodebian:stretch -p apt \
810
--dcm2niix version=v1.0.20180622 method=source \
911
--install git gcc pigz liblzma-dev libc-dev git-annex-standalone \
1012
--copy . /src/heudiconv \
11-
--miniconda create_env=neuro conda_install="python=3.6 traits>=4.6.0" activate=True \
13+
--miniconda use_env=base conda_install="python=3.6 traits>=4.6.0 scipy numpy nomkl" \
1214
pip_install="/src/heudiconv[all]" \
13-
--entrypoint "/neurodocker/startup.sh heudiconv" \
15+
--entrypoint "heudiconv" \
1416
> ../Dockerfile

0 commit comments

Comments
 (0)