@@ -24,7 +24,7 @@ Stage: builder
2424 . /root/.bashrc
2525
2626 # Create a conda env and install FSL tools needed for (me)deface and slicereport. NB: Keep the version the same as the Docker base image
27- conda create -n fsl python=3.10
27+ conda create -n fsl python=3.12
2828 conda install -n fsl -c https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/public/ -c conda-forge fsl-libvis fsl-avwutils fsl-flirt
2929
3030 # Pack the fsl environment into fsl.tar.gz and unpack it in /opt/fsl
@@ -63,14 +63,15 @@ Stage: final
6363 3) The current image does not include the Freesurfer/synthstrip software (needed for `skullstrip`)
6464
6565%files from builder
66- # /opt/bidscoin /opt/bidscoin # Only needed for pip install from github
6766 /usr/local/bin/dcm2niix /usr/local/bin/dcm2niix
6867 /opt/fsl /opt/fsl
68+ # /opt/bidscoin /opt/bidscoin # Only needed for pip install from GitHub
6969
7070%environment
7171 export FSLDIR=/opt/fsl FSLOUTPUTTYPE=NIFTI_GZ
7272 export PATH=$PATH:/opt/fsl/bin
7373 export PIP_NO_CACHE_DIR=off
74+ export CONTAINER=Apptainer
7475
7576%post
7677 # Install curl (sometimes needed by dcm2niix) and pigz (to speed up dcm2niix)
@@ -81,9 +82,9 @@ Stage: final
8182 apt -y --no-install-recommends install python3-pyqt6 build-essential libgl1 libxcb-cursor0 dbus qt6-wayland && apt clean # Add build-essential for newer python:3-slim base images (pip needs gcc and wayland support is not yet provided for)
8283
8384 # Install BIDScoin
84- # pip install /opt/bidscoin[spec2nii2bids,deface] # Also uncomment in xfiles from builder: `/opt/bidscoin /opt/bidscoin`
85- # pip install bidscoin[spec2nii2bids,deface]==VERSION
8685 pip install bidscoin[spec2nii2bids,deface]
86+ # pip install bidscoin[spec2nii2bids,deface]==VERSION
87+ # pip install /opt/bidscoin[spec2nii2bids,deface] # = GitHub. NB: Also uncomment in xfiles from builder: `/opt/bidscoin /opt/bidscoin`
8788
8889 # Uncomment the line below if you get errors like: ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory
8990 # strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
0 commit comments