File tree Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Expand file tree Collapse file tree 2 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 1
1
# Generated by Neurodocker and Reproenv.
2
2
3
- FROM neurodebian:bullseye
4
- ENV PATH="/opt/dcm2niix-v1.0.20220720 /bin:$PATH"
3
+ FROM neurodebian:bookworm
4
+ ENV PATH="/opt/dcm2niix-v1.0.20240202 /bin:$PATH"
5
5
RUN apt-get update -qq \
6
6
&& apt-get install -y -q --no-install-recommends \
7
7
ca-certificates \
@@ -16,10 +16,10 @@ RUN apt-get update -qq \
16
16
&& git clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix \
17
17
&& cd /tmp/dcm2niix \
18
18
&& git fetch --tags \
19
- && git checkout v1.0.20220720 \
19
+ && git checkout v1.0.20240202 \
20
20
&& mkdir /tmp/dcm2niix/build \
21
21
&& cd /tmp/dcm2niix/build \
22
- && cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON -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.20240202 .. \
23
23
&& make -j1 \
24
24
&& make install \
25
25
&& rm -rf /tmp/dcm2niix
@@ -87,19 +87,19 @@ RUN printf '{ \
87
87
{ \
88
88
"name": "from_", \
89
89
"kwds": { \
90
- "base_image": "neurodebian:bullseye " \
90
+ "base_image": "neurodebian:bookworm " \
91
91
} \
92
92
}, \
93
93
{ \
94
94
"name": "env", \
95
95
"kwds": { \
96
- "PATH": "/opt/dcm2niix-v1.0.20220720 /bin:$PATH" \
96
+ "PATH": "/opt/dcm2niix-v1.0.20240202 /bin:$PATH" \
97
97
} \
98
98
}, \
99
99
{ \
100
100
"name": "run", \
101
101
"kwds": { \
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
+ "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.20240202 \\ 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.20240202 ..\\ nmake -j1\\ nmake install\\ nrm -rf /tmp/dcm2niix" \
103
103
} \
104
104
}, \
105
105
{ \
Original file line number Diff line number Diff line change @@ -7,11 +7,20 @@ 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 \
11
- --base-image neurodebian:bullseye \
10
+ if hash podman; then
11
+ OCI_BINARY=podman
12
+ elif hash docker; then
13
+ OCI_BINARY=docker
14
+ else
15
+ echo " ERROR: no podman or docker found" >&2
16
+ exit 1
17
+ fi
18
+
19
+ ${OCI_BINARY:- docker} run --rm $image generate docker \
20
+ --base-image neurodebian:bookworm \
12
21
--pkg-manager apt \
13
22
--dcm2niix \
14
- version=v1.0.20220720 \
23
+ version=v1.0.20240202 \
15
24
method=source \
16
25
cmake_opts=" -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON" \
17
26
--install \
You can’t perform that action at this time.
0 commit comments