Skip to content

ADD minc tools install in gitactions #1179

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

Merged
merged 3 commits into from
Sep 13, 2024
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
58 changes: 47 additions & 11 deletions test/Dockerfile.test.php8
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
FROM php:8.3

RUN cat /etc/os-release
ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
apt-get install -y mariadb-client libzip-dev

RUN docker-php-ext-install pdo_mysql && \
docker-php-ext-install zip

# todo install loris-mri here

# Update the package list and install build-essential, checkinstall, and cmake
RUN apt-get update && \
Expand All @@ -25,6 +18,49 @@ RUN apt-get install -y perl && \
# Update the package list and install required packages

RUN apt-get update && \
apt-get install -y python3.11 python3.11-dev python3.11-venv python3-pip \
libmariadb-dev-compat \
libmariadb-dev \
apt-get install -y mariadb-client libzip-dev

RUN docker-php-ext-install pdo_mysql && \
docker-php-ext-install zip

ARG projectname=Loris-MRI
RUN useradd -ms /bin/bash lorisadmin \
&& mkdir -p /data/${projectname} \
&& mkdir -p /opt/${projectname}/bin/mri \

# Update packages and install necessary tools and libraries
RUN apt-get update \
&& apt-get install -y \
python3.11 \
wget \
imagemagick \
python3.11-dev \
python3-pip \
default-libmysqlclient-dev \
virtualenv \
&& rm -rf /var/lib/apt/lists/*


########################
# Install MINC Toolkit #
########################

# Install MINC Toolkit dependencies
RUN apt-get install -y libc6 libstdc++6 imagemagick perl

# Download the MINC Toolkit package
RUN wget -P /tmp http://packages.bic.mni.mcgill.ca/minc-toolkit/Debian/minc-toolkit-1.9.18-20200813-Debian_10-x86_64.deb

# Install the MINC Toolkit package
RUN dpkg -i /tmp/minc-toolkit-1.9.18-20200813-Debian_10-x86_64.deb

# Run the MINC Toolkit configuration script
RUN . /opt/minc/1.9.18/minc-toolkit-config.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will we update the config path in a separate PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, we will do it in a separate PR.


RUN wget -P /tmp https://packages.bic.mni.mcgill.ca/minc-toolkit/Debian/minc-toolkit-testsuite-0.1.3-20131212.deb
RUN wget -P /tmp https://packages.bic.mni.mcgill.ca/minc-toolkit/Debian/bic-mni-models-0.1.1-20120421.deb
RUN wget -P /tmp https://packages.bic.mni.mcgill.ca/minc-toolkit/Debian/beast-library-1.1.0-20121212.deb
RUN dpkg -i /tmp/bic-mni-models-0.1.1-20120421.deb
RUN dpkg -i /tmp/bic-mni-models-0.1.1-20120421.deb
RUN dpkg -i /tmp/beast-library-1.1.0-20121212.deb

Loading