ReproNim / neurodocker

Generate custom Docker and Singularity images, and minimize existing containers
https://www.repronim.org/neurodocker/
Apache License 2.0
327 stars 97 forks source link

Freesurfer 7.4.1 installation requires `--strip-components 2` instead of 1 when installing #625

Closed mvdoc closed 3 months ago

mvdoc commented 3 months ago

Freesurfer 7.4.1 gets installed into /opt/freesurfer-7.4.1/freesurfer. Maybe it's because the tar file was created differently than other versions?

Example to see the problem:

$ VERSION=7.4.1; mkdir -p ./freesurfer-"$VERSION"; curl -fL https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/"$VERSION"/freesurfer-linux-centos7_x86_64-"$VERSION".tar.gz | tar -xz -C ./freesurfer-"$VERSION"
--strip-components 1

$ ls freesurfer-7.4.1
freesurfer
$ VERSION=7.3.2; mkdir -p ./freesurfer-"$VERSION"; curl -fL https://surfer.nmr.mgh.harvard.edu/pub/dist/freesurfer/"$VERSION"/freesurfer-linux-centos7_x86_64-"$VERSION".tar.gz | tar -xz -C ./freesurfer-"$VERSION"
--strip-components 1

$ ls freesurfer-7.3.2
FreeSurferEnv.csh  FreeSurferEnv.sh  fsfast  mni-1.4  tktools  trctrain