Select Git revision
-
Sébastien Tourbier authoredSébastien Tourbier authored
Dockerfile 7.31 KiB
FROM ubuntu:20.04
WORKDIR /apps/
###############################################################################
# Install anywave
###############################################################################
ARG ANYWAVE_VERSION=2.1.3
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install --no-install-recommends -y \
curl ca-certificates libqt5charts5 libqt5concurrent5 libqt5multimediawidgets5 \
libqt5printsupport5 libqt5qml5 libmatio9 libvtk7.1p-qt \
libqwt-qt5-6 libqt5xml5 libqcustomplot2.0 libtbb2 && \
curl -Ok https://meg.univ-amu.fr/AnyWave/anywave-${ANYWAVE_VERSION}_amd64.deb && \
dpkg -i anywave-${ANYWAVE_VERSION}_amd64.deb && \
rm anywave-${ANYWAVE_VERSION}_amd64.deb
###############################################################################
# Install dcm2niix
###############################################################################
# Set the version of dcm2niix to install
ARG DCM2NIIX_VERSION=1.0.20211006
# Install dcm2niix and dependencies
RUN apt-get install --no-install-recommends -y unzip && \
curl -O -L https://github.com/rordenlab/dcm2niix/releases/download/v${DCM2NIIX_VERSION}/dcm2niix_lnx.zip && \
mkdir -p ./dcm2niix/install && \
unzip -q -d ./dcm2niix/install dcm2niix_lnx.zip && \
chmod 755 ./dcm2niix/install/dcm2niix && \
ln -s /apps/dcm2niix/install/dcm2niix /usr/bin/dcm2niix && \
rm dcm2niix_lnx.zip
###############################################################################
# Install bids-validator
###############################################################################
# TODO: use this to install a specific version of bids-validator from the original repo
# once the schema option is fixed and schema >= v1.8.0 is supported
# Set the version of bids-validator to install
# ARG BIDSVALIDATOR_VERSION=1.9.9
# Install bids-validator and dependencies
# RUN apt-get update && curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
# apt-get update && apt-get install --no-install-recommends -y \
# nodejs && \
# npm install -g npm && \
# npm install -g bids-validator@${BIDSVALIDATOR_VERSION} && \
# apt-get autoremove -y --purge && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/*
# Use our oen fork of bids-validator with the schema option fixed
# Set the version of bids-validator to install
ARG BIDSVALIDATOR_BRANCH=dev-hip
# Clone and install the latest version of a specific branch of bids-manager
ADD https://api.github.com/repos/HIP-infrastructure/bids-validator/git/refs/heads/$BIDSVALIDATOR_BRANCH version.json
RUN apt-get update && curl -sL https://deb.nodesource.com/setup_14.x | bash - && \
apt-get update && apt-get install --no-install-recommends -y \
git nodejs && \
mkdir -p bids-validator/install && \
cd bids-validator/install && \
git clone https://github.com/HIP-infrastructure/bids-validator.git bids-validator && \
cd bids-validator && \
git checkout $BIDSVALIDATOR_BRANCH && \
npm install -g npm && \