-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
112 lines (110 loc) · 3.02 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
# Generated by Neurodocker and Reproenv.
FROM ubuntu:22.04
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
ca-certificates \
curl \
gcc \
git \
gnupg2 \
pip \
python3 \
software-properties-common \
&& rm -rf /var/lib/apt/lists/*
RUN apt-key adv --fetch-keys https://apt.sr-research.com/SRResearch_key && add-apt-repository 'deb [arch=amd64] https://apt.sr-research.com SRResearch main'
RUN apt-get update -qq \
&& apt-get install -y -q --no-install-recommends \
eyelink-display-software \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir /eye2bids
COPY [".", \
"/eye2bids"]
WORKDIR /eye2bids
RUN pip install .[dev]
# Save specification to JSON.
RUN printf '{ \
"pkg_manager": "apt", \
"existing_users": [ \
"root" \
], \
"instructions": [ \
{ \
"name": "from_", \
"kwds": { \
"base_image": "ubuntu:22.04" \
} \
}, \
{ \
"name": "install", \
"kwds": { \
"pkgs": [ \
"gnupg2", \
"curl", \
"gcc", \
"ca-certificates", \
"software-properties-common", \
"python3", \
"pip", \
"git" \
], \
"opts": null \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "apt-get update -qq \\\\\\n && apt-get install -y -q --no-install-recommends \\\\\\n ca-certificates \\\\\\n curl \\\\\\n gcc \\\\\\n git \\\\\\n gnupg2 \\\\\\n pip \\\\\\n python3 \\\\\\n software-properties-common \\\\\\n && rm -rf /var/lib/apt/lists/*" \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "apt-key adv --fetch-keys https://apt.sr-research.com/SRResearch_key && add-apt-repository '"'"'deb [arch=amd64] https://apt.sr-research.com SRResearch main'"'"'" \
} \
}, \
{ \
"name": "install", \
"kwds": { \
"pkgs": [ \
"eyelink-display-software" \
], \
"opts": null \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "apt-get update -qq \\\\\\n && apt-get install -y -q --no-install-recommends \\\\\\n eyelink-display-software \\\\\\n && rm -rf /var/lib/apt/lists/*" \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "mkdir /eye2bids" \
} \
}, \
{ \
"name": "copy", \
"kwds": { \
"source": [ \
".", \
"/eye2bids" \
], \
"destination": "/eye2bids" \
} \
}, \
{ \
"name": "workdir", \
"kwds": { \
"path": "/eye2bids" \
} \
}, \
{ \
"name": "run", \
"kwds": { \
"command": "pip install .[dev]" \
} \
} \
] \
}' > /.reproenv.json
# End saving to specification to JSON.