Skip to content

Commit

Permalink
update to version 7 and create the home directories
Browse files Browse the repository at this point in the history
  • Loading branch information
DininduSenanayake committed Nov 15, 2024
1 parent e962522 commit 629cbb8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 22 deletions.
52 changes: 32 additions & 20 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
FROM ubuntu:22.04

ENV FSLDIR "/usr/local/fsl"
ENV DEBIAN_FRONTEND "noninteractive"
ENV LANG en_NZ.utf8
ENV DEBIAN_FRONTEND="noninteractive"
ENV LANG=en_NZ.utf8

# Forked from ML102
# - replace urls and difrectories
Expand Down Expand Up @@ -39,23 +38,6 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libgomp1 \
&& rm -rf /var/lib/apt/lists/*


RUN wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/releases/fslinstaller.py && \
python ./fslinstaller.py -d /usr/local/fsl/

ENTRYPOINT [ "sh", "-c", ". /usr/local/fsl/etc/fslconf/fsl.sh && /bin/bash" ]

# install jupyterlab
RUN pip3 --no-cache-dir install jupyterlab
RUN pip3 --no-cache-dir install numpy
RUN pip3 --no-cache-dir install scipy
RUN pip3 --no-cache-dir install pandas
RUN pip3 --no-cache-dir install matplotlib
RUN pip3 --no-cache-dir install nilearn
RUN pip3 --no-cache-dir install mne



## install mrtrix3 requirements
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libeigen3-dev \
Expand All @@ -69,8 +51,38 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \
libssl-dev \
cmake \
ninja-build \
# X11 dependencies for FSL
libx11-6 \
libxext6 \
libxt6 \
libxmu6 \
libxft2 \
libxinerama1 \
ca-certificates \
&& rm -rf /var/lib/apt/lists/*

# install jupyterlab
RUN pip3 --no-cache-dir install jupyterlab
RUN pip3 --no-cache-dir install numpy
RUN pip3 --no-cache-dir install scipy
RUN pip3 --no-cache-dir install pandas
RUN pip3 --no-cache-dir install matplotlib
RUN pip3 --no-cache-dir install nilearn
RUN pip3 --no-cache-dir install mne


#Install FSl
RUN wget https://fsl.fmrib.ox.ac.uk/fsldownloads/fslconda/releases/fslinstaller.py && \
python ./fslinstaller.py -d /usr/local/fsl/

#Make FSL Happy
ENV FSLDIR=/usr/local/fsl
ENV PATH=$FSLDIR/bin:$PATH
RUN /bin/bash -c 'source /usr/local/fsl/etc/fslconf/fsl.sh'

ENV FSLMULTIFILEQUIT=TRUE
ENV FSLOUTPUTTYPE=NIFTI_GZ

# Clone MRtrix3 repository
WORKDIR /opt
RUN git clone https://github.com/MRtrix3/mrtrix3.git
Expand Down
2 changes: 1 addition & 1 deletion submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ script:
native:
container:
name: "matai"
image: "ghcr.io/nesi/training-environment-jupyter-matai-app:v0.6.0"
image: "ghcr.io/nesi/training-environment-jupyter-matai-app:v0.7.0"
command: ["/bin/bash","-l","<%= staged_root %>/job_script_content.sh"]
working_dir: "<%= Etc.getpwnam(ENV['USER']).dir %>"
restart_policy: 'OnFailure'
Expand Down
3 changes: 2 additions & 1 deletion template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ set -x
# copy data files
# note: this will not overwrite files if they already exist, so changes won't
# be lost when restarting the app
rsync --ignore-existing -avz /var/lib/data ~/data/
rsync --ignore-existing -avz /var/lib/data ~/
mkdir ~/{dmri,fmri,intro}

# launch JupyterLab
jupyter lab --config="/ood/ondemand_config.py"

0 comments on commit 629cbb8

Please sign in to comment.