WCHN / CTseg

Brain CT image segmentation, normalisation, skull-stripping and total brain/intracranial volume computation.
GNU General Public License v3.0
55 stars 17 forks source link

Docker build error: /opt/spm/spm: not found #29

Open lyndonboone opened 1 week ago

lyndonboone commented 1 week ago

Hi there,

I'm trying to build a Docker image from the CTseg Dockerfile in WSL2 version 20.04. When I execute docker build -t ubuntu:ctseg -f CTseg/Dockerfile . I get the following error:

docker build -t ubuntu:ctseg -f CTseg/Dockerfile .
[+] Building 82.3s (7/8)
 => [internal] load build definition from Dockerfile                                                                            0.0s
 => => transferring dockerfile: 38B                                                                                             0.0s
 => [internal] load .dockerignore                                                                                               0.0s
 => => transferring context: 2B                                                                                                 0.0s
 => [internal] load metadata for docker.io/library/ubuntu:22.04                                                                81.3s
 => [1/5] FROM docker.io/library/ubuntu:22.04@sha256:340d9b015b194dc6e2a13938944e0d016e57b9679963fdeb9ce021daac430221           0.0s
 => CACHED [2/5] RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y install      unzip xorg wget  && apt-get clea  0.0s
 => CACHED [3/5] RUN mkdir /opt/mcr_install  && mkdir /opt/mcr  && wget --progress=bar:force -P /opt/mcr_install https://ssd.m  0.0s
 => ERROR [4/5] RUN wget --no-check-certificate --progress=bar:force -P /opt https://www.fil.ion.ucl.ac.uk/spm/download/restri  0.9s
------
 > [4/5] RUN wget --no-check-certificate --progress=bar:force -P /opt https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/tbx/spm_latest_tbx_Linux_R2019b.zip  && unzip -q /opt/spm_latest_tbx_Linux_R2019b.zip -d /opt  && rm -f /opt/spm_latest_tbx_Linux_R2019b.zip  && /opt/spm/spm function exit  && chmod +x /opt/spm/spm:
#7 0.398 --2024-07-03 15:28:14--  https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/tbx/spm_latest_tbx_Linux_R2019b.zip
#7 0.404 Resolving www.fil.ion.ucl.ac.uk (www.fil.ion.ucl.ac.uk)... 193.62.66.18
#7 0.416 Connecting to www.fil.ion.ucl.ac.uk (www.fil.ion.ucl.ac.uk)|193.62.66.18|:443... connected.
#7 0.740 HTTP request sent, awaiting response... 200 OK
#7 0.912 Length: 869 [application/zip]
#7 0.914 Saving to: '/opt/spm_latest_tbx_Linux_R2019b.zip'
#7 0.914
spm_latest_tbx_Linu 100%[===================>]     869  --.-KB/s    in 0s
#7 0.914
#7 0.914 2024-07-03 15:28:15 (319 MB/s) - '/opt/spm_latest_tbx_Linux_R2019b.zip' saved [869/869]
#7 0.914
#7 0.922 /bin/sh: 1: /opt/spm/spm: not found
------
executor failed running [/bin/sh -c wget --no-check-certificate --progress=bar:force -P /opt https://www.fil.ion.ucl.ac.uk/spm/download/restricted/utopia/dev/tbx/spm_${SPM_REVISION}_tbx_Linux_${MATLAB_VERSION}.zip  && unzip -q /opt/spm_${SPM_REVISION}_tbx_Linux_${MATLAB_VERSION}.zip -d /opt  && rm -f /opt/spm_${SPM_REVISION}_tbx_Linux_${MATLAB_VERSION}.zip  && /opt/spm/spm function exit  && chmod +x /opt/spm/spm]: exit code: 127

Do you know if there's anything I can do to get around this error? Is the CTseg Docker image compatible with WSL2? Thanks so much for all your help!