External Email - Use Caution        

This recipe works for me,

Bootstrap: docker
From: rockylinux:8
%files
/tmp/containers/fs_license.txt /opt/
/tmp/containers/freesurfer-Rocky8-8.2.0-1.x86_64.rpm /opt/
/tmp/containers/fs820_updates.sh /opt/
%post
yum -y upgrade dnf
yum -y upgrade rpm
yum -y install unzip findutils libgomp wget
yum -y --nogpgcheck localinstall /opt/freesurfer-Rocky8-8.2.0-1.x86_64.rpm
mv /opt/fs_license.txt /usr/local/freesurfer/8.2.0-1/.license
mkdir /subjects
FREESURFER_HOME=/usr/local/freesurfer/8.2.0-1 bash /opt/fs820_updates.sh
%environment
export FREESURFER_HOME=/usr/local/freesurfer/8.2.0-1
source $FREESURFER_HOME/SetUpFreeSurfer.sh
export FS_LICENSE=$FREESURFER_HOME/.license
export SUBJECTS_DIR=/subjects

and then,

$ singularity build freesurfer82.sif myrecipe.singularity

good luck



On Sun, May 17, 2026 at 9:58 PM nooshin Safari <noonoosh91@gmail.com> wrote:

        External Email - Use Caution        

Dear FreeSurfer team,

We need a Singularity/Apptainer image for the latest stable version of FreeSurfer to be run on RHEL 8 HPC.

We would like to work with a Singularity/Apptainer image for FreeSurfer 8.2.0. We will be running it on the institutional machine at MD Anderson Cancer Center. The operating system is Red Hat Enterprise Linux 8.7 (Ootpa).

Given that the Apptainer image for FreeSurfer 8.2.0 does not appear to be available online, could you please let us know how long it would take to create one?

We have a grant deadline in 45 days, and having this image available would significantly help us meet that deadline.

Thank you for your guidance.

Best regards,
Nooshin
_______________________________________________
Freesurfer mailing list -- freesurfer@nmr.mgh.harvard.edu
To unsubscribe send an email to freesurfer-leave@nmr.mgh.harvard.edu
https://mail.nmr.mgh.harvard.edu/mailman3/lists/freesurfer@nmr.mgh.harvard.edu/
The information in this e-mail is intended only for the person to whom it is addressed.  If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Mass General Brigham Compliance HelpLine at https://www.massgeneralbrigham.org/complianceline <https://www.massgeneralbrigham.org/complianceline> .