-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile_wip
69 lines (67 loc) · 1.59 KB
/
Dockerfile_wip
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
64
65
66
67
68
69
# Generated by Neurodocker and Reproenv.
FROM bids/base_validator:1.11.0
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
git-annex \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN pip install datalad
RUN mkdir /cohort_creator
COPY [".", \
"/cohort_creator"]
# Save specification to JSON.
RUN printf '{ \
"pkg_manager": "apt", \
"existing_users": [ \
"root" \
], \
"instructions": [ \
{ \
"name": "from_", \
"kwds": { \
"base_image": "bids/base_validator:1.11.0" \
} \
}, \
{ \
"name": "install", \
"kwds": { \
"pkgs": [ \
"python3", \
"python3-pip", \
"git-annex" \
], \
"opts": null \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "apt-get update -qq \\\\\\n && apt-get install -y -q --no-install-recommends \\\\\\n git-annex \\\\\\n python3 \\\\\\n python3-pip \\\\\\n && rm -rf /var/lib/apt/lists/*" \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "pip install datalad" \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "mkdir /cohort_creator" \
} \
}, \
{ \
"name": "copy", \
"kwds": { \
"source": [ \
".", \
"/cohort_creator" \
], \
"destination": "/cohort_creator" \
} \
} \
] \
}' > /.reproenv.json
# End saving to specification to JSON.