diff --git a/recipes/vesselboost/build.sh b/recipes/vesselboost/build.sh index d56e1cfd..87fa1655 100755 --- a/recipes/vesselboost/build.sh +++ b/recipes/vesselboost/build.sh @@ -1,5 +1,5 @@ export toolName='vesselboost' -export toolVersion='1.0.0' +export toolVersion='1.0.1' if [ "$1" != "" ]; then echo "Entering Debug mode" @@ -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' \ @@ -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 \ No newline at end of file