Skip to content

Commit ba60d86

Browse files
committed
[DATALAD RUNCMD] ./generate_container.sh
=== Do not change lines below === { "chain": [], "cmd": "./generate_container.sh", "exit": 0, "inputs": [], "outputs": [ "Singularity*", "Dockerfile" ], "pwd": "." } ^^^ Do not change lines above ^^^
1 parent 8d9d600 commit ba60d86

File tree

3 files changed

+242
-4
lines changed

3 files changed

+242
-4
lines changed

Dockerfile

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated by Neurodocker version 0.4.1
2-
# Timestamp: 2019-01-05 04:54:54 UTC
1+
# Generated by Neurodocker version 0.4.3-2-g01cdd22
2+
# Timestamp: 2019-01-05 06:19:25 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
@@ -11,6 +11,13 @@ FROM neurodebian:stretch
1111

1212
ARG DEBIAN_FRONTEND="noninteractive"
1313

14+
RUN apt-get update -qq \
15+
&& apt-get install -y -q --no-install-recommends \
16+
neurodebian-freeze \
17+
&& apt-get clean \
18+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \
19+
&& nd_freeze 20190105
20+
1421
ENV LANG="en_US.UTF-8" \
1522
LC_ALL="en_US.UTF-8" \
1623
ND_ENTRYPOINT="/neurodocker/startup.sh"
@@ -119,6 +126,12 @@ RUN echo '{ \
119126
\n "neurodebian:stretch" \
120127
\n ], \
121128
\n [ \
129+
\n "ndfreeze", \
130+
\n { \
131+
\n "date": "20190105" \
132+
\n } \
133+
\n ], \
134+
\n [ \
122135
\n "install", \
123136
\n [ \
124137
\n "vim", \

Singularity

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Generated by Neurodocker version 0.4.1
2-
# Timestamp: 2019-01-05 04:54:55 UTC
1+
# Generated by Neurodocker version 0.4.3-2-g01cdd22
2+
# Timestamp: 2019-01-05 06:19:26 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
@@ -11,6 +11,13 @@ Bootstrap: docker
1111
From: neurodebian:stretch
1212

1313
%post
14+
apt-get update -qq
15+
apt-get install -y -q --no-install-recommends \
16+
neurodebian-freeze
17+
apt-get clean
18+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
19+
nd_freeze 20190105
20+
1421
export ND_ENTRYPOINT="/neurodocker/startup.sh"
1522
apt-get update -qq
1623
apt-get install -y -q --no-install-recommends \
@@ -111,6 +118,12 @@ echo '{
111118
\n "neurodebian:stretch"
112119
\n ],
113120
\n [
121+
\n "ndfreeze",
122+
\n {
123+
\n "date": "20190105"
124+
\n }
125+
\n ],
126+
\n [
114127
\n "_header",
115128
\n {
116129
\n "version": "generic",

Singularity.0.5.2

Lines changed: 212 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,212 @@
1+
# Generated by Neurodocker version 0.4.3-2-g01cdd22
2+
# Timestamp: 2019-01-05 06:19:26 UTC
3+
#
4+
# Thank you for using Neurodocker. If you discover any issues
5+
# or ways to improve this software, please submit an issue or
6+
# pull request on our GitHub repository:
7+
#
8+
# https://github.com/kaczmarj/neurodocker
9+
10+
Bootstrap: docker
11+
From: neurodebian:stretch
12+
13+
%post
14+
apt-get update -qq
15+
apt-get install -y -q --no-install-recommends \
16+
neurodebian-freeze
17+
apt-get clean
18+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
19+
nd_freeze 20190105
20+
21+
export ND_ENTRYPOINT="/neurodocker/startup.sh"
22+
apt-get update -qq
23+
apt-get install -y -q --no-install-recommends \
24+
apt-utils \
25+
bzip2 \
26+
ca-certificates \
27+
curl \
28+
locales \
29+
unzip
30+
apt-get clean
31+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
32+
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen
33+
dpkg-reconfigure --frontend=noninteractive locales
34+
update-locale LANG="en_US.UTF-8"
35+
chmod 777 /opt && chmod a+s /opt
36+
mkdir -p /neurodocker
37+
if [ ! -f "$ND_ENTRYPOINT" ]; then
38+
echo '#!/usr/bin/env bash' >> "$ND_ENTRYPOINT"
39+
echo 'set -e' >> "$ND_ENTRYPOINT"
40+
echo 'if [ -n "$1" ]; then "$@"; else /usr/bin/env bash; fi' >> "$ND_ENTRYPOINT";
41+
fi
42+
chmod -R 777 /neurodocker && chmod a+s /neurodocker
43+
44+
apt-get update -qq
45+
apt-get install -y -q --no-install-recommends \
46+
vim \
47+
wget \
48+
strace \
49+
time \
50+
ncdu \
51+
gnupg \
52+
curl \
53+
procps \
54+
datalad \
55+
pigz \
56+
git-annex-standalone \
57+
python-nipype \
58+
virtualenv \
59+
python-dcmstack \
60+
python-configparser \
61+
python-funcsigs \
62+
python-pytest \
63+
dcmtk \
64+
python-pip \
65+
python-wheel \
66+
python-setuptools \
67+
python-datalad
68+
apt-get clean
69+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
70+
71+
curl -sL https://deb.nodesource.com/setup_6.x | bash -
72+
73+
apt-get update -qq
74+
apt-get install -y -q --no-install-recommends \
75+
nodejs \
76+
npm
77+
apt-get clean
78+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
79+
80+
npm install -g [email protected]
81+
82+
mkdir /afs /inbox
83+
84+
pip install heudiconv
85+
86+
apt-get update -qq
87+
apt-get install -y -q --no-install-recommends \
88+
cmake \
89+
g++ \
90+
gcc \
91+
git \
92+
make \
93+
pigz \
94+
zlib1g-dev
95+
apt-get clean
96+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
97+
git clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix
98+
cd /tmp/dcm2niix
99+
git fetch --tags
100+
git checkout v1.0.20181125
101+
mkdir /tmp/dcm2niix/build
102+
cd /tmp/dcm2niix/build
103+
cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20181125 ..
104+
make
105+
make install
106+
rm -rf /tmp/dcm2niix
107+
108+
echo '#!/bin/bash' >> /neurodocker/heudiconv.sh && echo 'heudiconv "$@"' >> /neurodocker/heudiconv.sh && chmod +x /neurodocker/heudiconv.sh
109+
110+
useradd --no-user-group --create-home --shell /bin/bash reproin
111+
su - reproin
112+
113+
echo '{
114+
\n "pkg_manager": "apt",
115+
\n "instructions": [
116+
\n [
117+
\n "base",
118+
\n "neurodebian:stretch"
119+
\n ],
120+
\n [
121+
\n "ndfreeze",
122+
\n {
123+
\n "date": "20190105"
124+
\n }
125+
\n ],
126+
\n [
127+
\n "_header",
128+
\n {
129+
\n "version": "generic",
130+
\n "method": "custom"
131+
\n }
132+
\n ],
133+
\n [
134+
\n "install",
135+
\n [
136+
\n "vim",
137+
\n "wget",
138+
\n "strace",
139+
\n "time",
140+
\n "ncdu",
141+
\n "gnupg",
142+
\n "curl",
143+
\n "procps",
144+
\n "datalad",
145+
\n "pigz",
146+
\n "git-annex-standalone",
147+
\n "python-nipype",
148+
\n "virtualenv",
149+
\n "python-dcmstack",
150+
\n "python-configparser",
151+
\n "python-funcsigs",
152+
\n "python-pytest",
153+
\n "dcmtk",
154+
\n "python-pip",
155+
\n "python-wheel",
156+
\n "python-setuptools",
157+
\n "python-datalad"
158+
\n ]
159+
\n ],
160+
\n [
161+
\n "run",
162+
\n "curl -sL https://deb.nodesource.com/setup_6.x | bash - "
163+
\n ],
164+
\n [
165+
\n "install",
166+
\n [
167+
\n "nodejs",
168+
\n "npm"
169+
\n ]
170+
\n ],
171+
\n [
172+
\n "run",
173+
\n "npm install -g [email protected]"
174+
\n ],
175+
\n [
176+
\n "run",
177+
\n "mkdir /afs /inbox"
178+
\n ],
179+
\n [
180+
\n "run",
181+
\n "pip install heudiconv"
182+
\n ],
183+
\n [
184+
\n "dcm2niix",
185+
\n {
186+
\n "version": "v1.0.20181125",
187+
\n "method": "source"
188+
\n }
189+
\n ],
190+
\n [
191+
\n "run",
192+
\n "echo '"'"'#!/bin/bash'"'"' >> /neurodocker/heudiconv.sh && echo '"'"'heudiconv \"$@\"'"'"' >> /neurodocker/heudiconv.sh && chmod +x /neurodocker/heudiconv.sh"
193+
\n ],
194+
\n [
195+
\n "user",
196+
\n "reproin"
197+
\n ],
198+
\n [
199+
\n "entrypoint",
200+
\n "/neurodocker/heudiconv.sh"
201+
\n ]
202+
\n ]
203+
\n}' > /neurodocker/neurodocker_specs.json
204+
205+
%environment
206+
export LANG="en_US.UTF-8"
207+
export LC_ALL="en_US.UTF-8"
208+
export ND_ENTRYPOINT="/neurodocker/startup.sh"
209+
export PATH="/opt/dcm2niix-v1.0.20181125/bin:$PATH"
210+
211+
%runscript
212+
/neurodocker/heudiconv.sh

0 commit comments

Comments
 (0)