Skip to content

Commit

Permalink
Merge pull request #799 from KMarshallX/vesselboost_openrecon_local
Browse files Browse the repository at this point in the history
Vesselboost openrecon local
  • Loading branch information
KMarshallX authored Sep 9, 2024
2 parents 2d3fe9e + 4d178f9 commit 280153a
Showing 1 changed file with 33 additions and 7 deletions.
40 changes: 33 additions & 7 deletions recipes/vesselboost/build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export toolName='vesselboost'
export toolVersion='1.0.0'
export toolVersion='1.0.1'

if [ "$1" != "" ]; then
echo "Entering Debug mode"
Expand All @@ -9,14 +9,34 @@ fi
source ../main_setup.sh

neurodocker generate ${neurodocker_buildMode} \
--base-image pytorch/pytorch:1.13.1-cuda11.6-cudnn8-runtime \
--base-image pytorch/pytorch:2.4.0-cuda11.8-cudnn9-runtime `# Ubuntu 22.04 base image`\
--pkg-manager apt \
--env DEBIAN_FRONTEND=noninteractive \
--install git vim \
--workdir=/opt \
--workdir='/opt/code' \
--install build-essential libxslt1.1 libhdf5-103 libboost-program-options1.74.0 libpugixml1v5 vim dos2unix git cmake g++ libhdf5-dev libxml2-dev libxslt1-dev libboost-all-dev libfftw3-dev libpugixml-dev \
--run='git clone https://github.com/ismrmrd/ismrmrd.git && \
cd ./ismrmrd && \
cmake . && \
make -j $(nproc) && \
make install' \
--run='git clone https://github.com/ismrmrd/siemens_to_ismrmrd.git && \
cd siemens_to_ismrmrd && \
mkdir build && \
cd build && \
cmake .. && \
make -j $(nproc) && \
make install' \
--run='pip3 install h5py ismrmrd matplotlib pydicom pynetdicom nibabel' \
--run='git clone https://github.com/ismrmrd/ismrmrd-python-tools.git && \
cd ismrmrd-python-tools && \
pip3 install --no-cache-dir .' \
--run='git clone https://github.com/kspaceKelvin/python-ismrmrd-server && \
find /opt/code/python-ismrmrd-server -name "*.sh" -exec chmod +x {} \; && \
find /opt/code/python-ismrmrd-server -name "*.sh" | xargs dos2unix' \
--entrypoint='python3 /opt/code/python-ismrmrd-server/main.py -v -r -H=0.0.0.0 -p=9002 -l=/tmp/python-ismrmrd-server.log -s -S=/tmp/share/saved_data' \
--workdir='/opt' \
--run='git clone https://github.com/KMarshallX/VesselBoost.git && \
cd VesselBoost && \
git checkout e1f628369f181b67fa880c1e6a8edf29885f9717' \
cd VesselBoost' \
--workdir='/opt/VesselBoost/' \
--run='pip install -r requirements.txt ' \
--workdir='/opt/VesselBoost/saved_models' \
Expand All @@ -29,6 +49,12 @@ neurodocker generate ${neurodocker_buildMode} \
--copy README.md /README.md \
> ${toolName}_${toolVersion}.Dockerfile



# --copy invertcontrast.py /opt/code/python-ismrmrd-server/invertcontrast.py \



if [ "$1" != "" ]; then
./../main_build.sh
fi
fi

0 comments on commit 280153a

Please sign in to comment.