From efef1d385a4f331b03c0562d6d77ce327ef7ecff Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Tue, 14 Mar 2023 11:59:19 -0400 Subject: [PATCH] [DATALAD RUNCMD] produce updated dockerfile === Do not change lines below === { "chain": [ "e179ee94e55f524620bea09c4d29fe56a7908fff" ], "cmd": "utils/gen-docker-image.sh", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- Dockerfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/Dockerfile b/Dockerfile index c65ba1ea..5ec60639 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,28 @@ # Generated by Neurodocker and Reproenv. FROM neurodebian:bullseye +ENV PATH="/opt/dcm2niix-v1.0.20220720/bin:$PATH" +RUN apt-get update -qq \ + && apt-get install -y -q --no-install-recommends \ + ca-certificates \ + cmake \ + g++ \ + gcc \ + git \ + make \ + pigz \ + zlib1g-dev \ + && rm -rf /var/lib/apt/lists/* \ + && git clone https://github.com/rordenlab/dcm2niix /tmp/dcm2niix \ + && cd /tmp/dcm2niix \ + && git fetch --tags \ + && git checkout v1.0.20220720 \ + && mkdir /tmp/dcm2niix/build \ + && cd /tmp/dcm2niix/build \ + && cmake -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 .. \ + && make -j1 \ + && make install \ + && rm -rf /tmp/dcm2niix RUN apt-get update -qq \ && apt-get install -y -q --no-install-recommends \ gcc \ @@ -67,6 +89,18 @@ RUN printf '{ \ "base_image": "neurodebian:bullseye" \ } \ }, \ + { \ + "name": "env", \ + "kwds": { \ + "PATH": "/opt/dcm2niix-v1.0.20220720/bin:$PATH" \ + } \ + }, \ + { \ + "name": "run", \ + "kwds": { \ + "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 -DCMAKE_INSTALL_PREFIX:PATH=/opt/dcm2niix-v1.0.20220720 ..\\nmake -j1\\nmake install\\nrm -rf /tmp/dcm2niix" \ + } \ + }, \ { \ "name": "install", \ "kwds": { \