-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ac0c0a0
commit 1c09196
Showing
2 changed files
with
54 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,21 +7,29 @@ RUN apt-get update | |
# Install utilities # | ||
##################### | ||
|
||
# Update the package list and install build-essential, checkinstall, and cmake | ||
# Install some general dependencies | ||
RUN apt-get install -y build-essential checkinstall cmake libzip-dev mariadb-client | ||
|
||
# Install Perl and update CPAN | ||
RUN apt-get install -y perl && \ | ||
cpan CPAN | ||
# Install the dependencies of LORIS-MRI | ||
RUN apt-get install -y build-essential checkinstall cmake dcmtk libzip-dev mariadb-client perl | ||
|
||
# Install utilities | ||
# - `wget` is used by some installation commands | ||
# - `sudo` is used by the imaging install script | ||
RUN apt-get install -y wget sudo | ||
# - `s3fs` is used to mount the imaging files on the file system | ||
# - `wget` is used by some installation commands | ||
RUN apt-get install -y s3fs fuse sudo wget kmod | ||
|
||
# Install the DICOM Toolkit | ||
RUN apt-get install -y dcmtk | ||
ARG BUCKET_URL | ||
ARG BUCKET_NAME | ||
ARG BUCKET_ACCESS_KEY | ||
ARG BUCKET_SECRET_KEY | ||
|
||
# Connect to the imaging S3 bucket and mount in the LORIS-MRI image | ||
RUN modprobe fuse && \ | ||
mkdir /data-imaging && \ | ||
touch .passwd-s3fs && \ | ||
chmod 600 .passwd-s3fs && \ | ||
echo $BUCKET_ACCESS_KEY:$BUCKET_SECRET_KEY > .passwd-s3fs && \ | ||
s3fs $BUCKET_NAME /data-imaging -o passwd_file=.passwd-s3fs -o url=$BUCKET_URL -o use_path_request_style -o allow_other | ||
|
||
RUN ls /data-imaging | ||
|
||
######################## | ||
# Install MINC Toolkit # | ||
|
@@ -70,7 +78,8 @@ RUN dpkg -i /tmp/bic-mni-models-0.1.1-20120421.deb && \ | |
RUN apt-get install -y libmariadb-dev libmariadb-dev-compat | ||
|
||
# Install the Perl libraries | ||
RUN cpan install Math::Round && \ | ||
RUN cpan CPAN && \ | ||
cpan install Math::Round && \ | ||
cpan install DBI && \ | ||
cpan install DBD::[email protected] && \ | ||
cpan install Getopt::Tabular && \ | ||
|
@@ -117,3 +126,7 @@ ENV LORIS_MRI=/opt/${PROJECT}/bin/mri | |
ENV PYTHONPATH=$PYTHONPATH:/opt/${PROJECT}/bin/mri/python:/opt/${PROJECT}/bin/mri/python/react-series-data-viewer | ||
ENV BEASTLIB=${MINC_TOOLKIT_DIR}/../share/beast-library-1.1 | ||
ENV MNI_MODELS=${MINC_TOOLKIT_DIR}/../share/icbm152_model_09c | ||
|
||
####################### | ||
# Mount imaging files # | ||
####################### |