Skip to content

Commit

Permalink
skipci
Browse files Browse the repository at this point in the history
  • Loading branch information
vnm-neurodesk committed Nov 4, 2024
1 parent 9186326 commit 09d6a0a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
16 changes: 11 additions & 5 deletions recipes/freesurfer/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,16 @@ if [ "$1" != "" ]; then
fi

export toolName='freesurfer'
export toolVersion=7.3.2
export toolVersion=7.4.1

source ../main_setup.sh
source ../main_setup.sh --reinstall_neurodocker=false

neurodocker generate ${neurodocker_buildMode} \
--base-image centos:8 \
--pkg-manager yum \
--run="printf '#!/bin/bash\nls -la' > /usr/bin/ll" \
--run="chmod +x /usr/bin/ll" \
--run="mkdir -p ${mountPointList}" \
--run="cd /etc/yum.repos.d/" \
--run="sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*" \
--run="sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*" \
--run="yum upgrade -y dnf" \
--run="yum upgrade -y rpm" \
--install wget \
Expand Down Expand Up @@ -64,10 +61,19 @@ neurodocker generate ${neurodocker_buildMode} \
--copy license.txt /opt/${toolName}-${toolVersion}/license.txt \
> ${imageName}.${neurodocker_buildExt}

# Hack to make CENTOS8 work with neurodocker
sed -i '4i RUN sed -i '\''s/mirrorlist/#mirrorlist/g'\'' /etc/yum.repos.d/CentOS-*' ${imageName}.${neurodocker_buildExt}
sed -i '5i RUN sed -i '\''s|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g'\'' /etc/yum.repos.d/CentOS-*' ${imageName}.${neurodocker_buildExt}

sed -i '/ENV LANG="en_US.UTF-8" \\/,+2d' ${imageName}.${neurodocker_buildExt}
sed -i '/localedef \\/d' ${imageName}.${neurodocker_buildExt}
sed -i '/&& localedef -i en_US -f UTF-8 en_US.UTF-8 \\/d' ${imageName}.${neurodocker_buildExt}

if [ "$1" != "" ]; then
./../main_build.sh
fi


# debug segmentSubjectT1_autoEstimateAlveusML:
# dnf install strace -y
# strace segmentSubjectT1_autoEstimateAlveusML
Expand Down
1 change: 1 addition & 0 deletions recipes/freesurfer/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
segmentSubjectT1_autoEstimateAlveusML #should not complain about libraries missing
checkMCR.sh #should not complain
segmentThalamicNuclei.sh --help #should not compalin about matlab libraries missing
mris_left_right_register # should not through permission denied error

# interactive test:
if [[ -v DISPLAY ]]; then
Expand Down
4 changes: 2 additions & 2 deletions recipes/quickshear/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

----------------------------------
## quickshear/1.1.0 ##
## quickshear/toolVersion ##
Quickshear uses a skull stripped version of an anatomical image as a reference to deface the unaltered anatomical image.

Example:
Expand All @@ -12,7 +12,7 @@ quickshear input.nii.gz mask.nii.gz defaced.nii.gz

More documentation can be found here: [link_to_documentation](https://github.com/nipy/quickshear)

To make the executables and scripts inside this container transparently available in the command line of environments where Neurocommand is installed: ml quickshear/1.1.0
To make the executables and scripts inside this container transparently available in the command line of environments where Neurocommand is installed: ml quickshear/toolVersion

Citation:
```
Expand Down

0 comments on commit 09d6a0a

Please sign in to comment.