Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Set TemplateFlow directory world-writeable #1501

Merged
merged 1 commit into from
Feb 8, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,8 @@ ENV TEMPLATEFLOW_HOME="/opt/templateflow"
RUN pip install "datalad==0.10.0" && \
rm -rf ~/.cache/pip

RUN git config --global user.name "First Last" && \
git config --global user.email "mail@domain.com"

RUN datalad install -r https://github.com/templateflow/templateflow.git && \
RUN umask 000 && \
datalad install -r https://github.com/templateflow/templateflow.git && \
datalad get $TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_T1w.nii.gz \
$TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/*_desc-brain_mask.nii.gz \
$TEMPLATEFLOW_HOME/tpl-MNI152NLin2009cAsym/tpl-MNI152NLin2009cAsym_res-02_desc-fMRIPrep_boldref.nii.gz \
Expand All @@ -175,6 +173,11 @@ RUN datalad install -r https://github.com/templateflow/templateflow.git && \
$TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_label-brain_probseg.nii.gz \
$TEMPLATEFLOW_HOME/tpl-OASIS30ANTs/tpl-OASIS30ANTs_res-01_desc-BrainCerebellumExtraction_mask.nii.gz

# Stop datalad complaining about user info when using templateflow on Singularity
RUN cd $TEMPLATEFLOW_HOME && \
git config user.name "fMRIPrep User" && \
git config user.email "mail@domain.tld"

# Installing dev requirements (packages that are not in pypi)
WORKDIR /src/
COPY requirements.txt requirements.txt
Expand Down