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 11# Generated by Neurodocker and Reproenv.
22
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"
55RUN apt-get update -qq \
66 && apt-get install -y -q --no-install-recommends \
77 ca-certificates \
@@ -16,10 +16,10 @@ RUN apt-get update -qq \
1616 && git clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix \
1717 && cd /tmp/dcm2niix \
1818 && git fetch --tags \
19- && git checkout v1.0.20220720 \
19+ && git checkout v1.0.20240202 \
2020 && mkdir /tmp/dcm2niix/build \
2121 && 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 .. \
2323 && make -j1 \
2424 && make install \
2525 && rm -rf /tmp/dcm2niix
@@ -87,19 +87,19 @@ RUN printf '{ \
8787 { \
8888 "name": "from_", \
8989 "kwds": { \
90- "base_image": "neurodebian:bullseye " \
90+ "base_image": "neurodebian:bookworm " \
9191 } \
9292 }, \
9393 { \
9494 "name": "env", \
9595 "kwds": { \
96- "PATH": "/opt/dcm2niix-v1.0.20220720 /bin:$PATH" \
96+ "PATH": "/opt/dcm2niix-v1.0.20240202 /bin:$PATH" \
9797 } \
9898 }, \
9999 { \
100100 "name": "run", \
101101 "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" \
103103 } \
104104 }, \
105105 { \
Original file line number Diff line number Diff line change @@ -7,11 +7,20 @@ VER=$(grep -Po '(?<=^__version__ = ).*' $thisd/../heudiconv/info.py | sed 's/"//
77
88image=" kaczmarj/neurodocker:0.9.1"
99
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 \
1221 --pkg-manager apt \
1322 --dcm2niix \
14- version=v1.0.20220720 \
23+ version=v1.0.20240202 \
1524 method=source \
1625 cmake_opts=" -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON" \
1726 --install \
You can’t perform that action at this time.
0 commit comments