Skip to content

Commit

Permalink
BF: Explicitly test/install fsl-mni152-templates package
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Oct 11, 2017
1 parent 93b7f9b commit 66e52bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN bash -c "sed -i -e 's,http://neuro.debian.net/debian/* ,http://snapshot-neur
RUN bash -c "curl -s http://neuro.debian.net/_files/knock-snapshots;"
RUN bash -c "eatmydata apt-get update; eatmydata apt-get dist-upgrade -y;"
# We might be just fine with the core here
RUN bash -c "eatmydata apt-get install -y -q fsl-core fsl-first-data"
RUN bash -c "eatmydata apt-get install -y -q fsl-core fsl-first-data fsl-mni152-templates"

RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /boot /media /mnt /srv
Expand Down
8 changes: 7 additions & 1 deletion Simple_Prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ echo "FSL bet is available"

# Check if first models are available

if ! /bin/ls $FSLDIR/data/first/models* | grep -q .; then
if ! /bin/ls $FSLDIR/data/first/models* >/dev/null; then
errorout "No first data found (fsl-first-data package on Debians)"
fi
echo "FSL first data found"

if ! /bin/ls $FSLDIR/data/standard/MNI152_T1_1mm.nii.gz >/dev/null; then
errorout "No FSL MNI templates found (fsl-mni152-templates package on Debians)"
fi
echo "FSL MNI templates found"


# Check if curl is available
[ ! $(command -v curl) ] && echo "No curl: Make sure a version of curl is installed and available." && kill -INT $$
echo "curl is available"
Expand Down

0 comments on commit 66e52bf

Please sign in to comment.