-
Notifications
You must be signed in to change notification settings - Fork 35
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
b30988f
commit 5d6586d
Showing
4 changed files
with
15 additions
and
11 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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
FROM python:3.10-slim AS builder | ||
|
||
# Make a dcm2niix build from the latest stable source code | ||
RUN apt-get update && apt-get -y install git build-essential cmake; \ | ||
RUN apt update && apt -y install git build-essential cmake; \ | ||
git clone https://github.com/rordenlab/dcm2niix.git; \ | ||
cd dcm2niix; mkdir build && cd build; \ | ||
cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON ..; \ | ||
make install | ||
|
||
# Or install the latest dcm2niix release from the base repository (= typically outdated) | ||
# RUN apt-get update && apt-get -y install dcm2niix | ||
# RUN apt update && apt -y install dcm2niix | ||
|
||
FROM python:3.10-slim | ||
|
||
|
@@ -18,6 +18,6 @@ COPY --from=builder /usr/local/bin/dcm2niix /usr/local/bin/dcm2niix | |
# First install pyqt5 as Debian package to solve dependencies issues occurring when installed with pip | ||
# Then install the latest stable BIDScoin release from Python repository | ||
ENV PIP_NO_CACHE_DIR=off | ||
RUN apt-get update && apt-get -y --no-install-recommends install pigz curl python3-pyqt5 python3-pyqt5.qtx11extras git && apt-get clean; \ | ||
RUN apt update && apt -y --no-install-recommends install pigz curl python3-pyqt5 python3-pyqt5.qtx11extras git && apt clean; \ | ||
pip install --upgrade pip; \ | ||
pip install bidscoin[all]@git+https://github.com/Donders-Institute/[email protected]+qt5 |
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 |
---|---|---|
|
@@ -4,10 +4,10 @@ Stage: builder | |
|
||
%post | ||
# Install the latest dcm2niix release from the base repository (= typically outdated) | ||
# apt-get update && apt-get -y install dcm2niix | ||
# apt update && apt -y install dcm2niix | ||
|
||
# Install the latest dcm2niix from sources | ||
apt-get update && apt-get -y install git build-essential cmake | ||
apt update && apt -y install git build-essential cmake | ||
git clone https://github.com/rordenlab/dcm2niix.git | ||
cd dcm2niix; mkdir build && cd build | ||
cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON .. | ||
|
@@ -23,7 +23,7 @@ Stage: final | |
|
||
* Debian stable, | ||
* the latest version of dcm2niix (https://www.nitrc.org/plugins/mwiki/index.php/dcm2nii:MainPage) | ||
* the latest stable release of BIDScoin and its plugins. The general form to run BIDScoin commands is: | ||
* the latest stable release (4.1.0+qt5) of BIDScoin and its plugins. The general form to run BIDScoin commands is: | ||
|
||
apptainer exec bidscoin.sif <bidscoin_tool> <bidscoin_tool_args> | ||
|
||
|
@@ -48,11 +48,11 @@ Stage: final | |
|
||
%post | ||
# Install curl (sometimes needed by dcm2niix) and pigz (to speed up dcm2niix) | ||
apt-get update && apt-get -y --no-install-recommends install pigz curl | ||
apt update && apt -y --no-install-recommends install pigz curl | ||
|
||
# Install the latest stable BIDScoin release from Python repository | ||
# NOTE: PyQt5 is installed as Debian package to solve dependencies issues occurring when installed with pip | ||
apt-get -y --no-install-recommends install python3-pyqt5 python3-pyqt5.qtx11extras git && apt-get clean | ||
apt -y --no-install-recommends install python3-pyqt5 python3-pyqt5.qtx11extras git && apt clean | ||
pip install --upgrade pip | ||
pip install bidscoin[all]@git+https://github.com/Donders-Institute/[email protected]+qt5 | ||
|
||
|
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