Skip to content

Commit

Permalink
samsrfx v10
Browse files Browse the repository at this point in the history
  • Loading branch information
vnm-neurodesk committed Nov 15, 2024
1 parent 3dac173 commit bca65a6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions recipes/samsrfx/README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@

----------------------------------
## samsrfx/toolVersion ##
conn standalone with Matlab Compiler Runtime
## samsrfx/v10 ##
SamsrfX standalone with Matlab Compiler Runtime

Example:
```
/opt/samsrfx-toolVersion/samsrf/run_SamSrfX.sh /opt/MCR-2023b/R2023b/
samsrfx
```

More documentation can be found here:
More documentation can be found here: https://github.com/samsrf/samsrf

To run container outside of this environment: ml samsrfx/toolVersion
To run container outside of this environment: ml samsrfx/v10

----------------------------------
16 changes: 8 additions & 8 deletions recipes/samsrfx/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -e

export toolName='samsrfx'
export toolVersion='0.0.2'
export toolVersion='v10'

if [ "$1" != "" ]; then
echo "Entering Debug mode"
Expand All @@ -20,17 +20,17 @@ neurodocker generate ${neurodocker_buildMode} \
--matlabmcr version=2023b method=binaries \
--install wget openjdk-8-jre dbus-x11 libgbm-dev \
--workdir /opt/${toolName}-${toolVersion}/ \
--run="wget --no-check-certificate --progress=bar:force -P /opt/${toolName}-${toolVersion}/ https://object-store.rc.nectar.org.au/v1/AUTH_dead991e1fa847e3afcca2d3a7041f5d/build/samsrf_241003.zip \
&& unzip -q samsrf_241003.zip -d /opt/${toolName}-${toolVersion}/ \
--run="wget --no-check-certificate --progress=bar:force -P /opt/${toolName}-${toolVersion}/ https://object-store.rc.nectar.org.au/v1/AUTH_dead991e1fa847e3afcca2d3a7041f5d/build/samsrf_${toolVersion}.zip \
&& unzip -q samsrf_${toolVersion}.zip -d /opt/${toolName}-${toolVersion}/ \
&& chmod a+x /opt/${toolName}-${toolVersion}/samsrf/SamSrfX \
&& rm -f samsrf_241003.zip" \
--env DEPLOY_BINS=SamSrfX \
--env PATH=/opt/${toolName}-${toolVersion}/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
&& rm -f samsrf_${toolVersion}.zip" \
--env DEPLOY_BINS=samsrfx \
--run="echo '/opt/samsrfx-${toolVersion}/samsrf/run_SamSrfX.sh /opt/MCR-2023b/R2023b/' > samsrfx \
&& chmod a+x samsrfx" \
--env PATH='$PATH':/opt/${toolName}-${toolVersion}/ \
--copy README.md /README.md \
> ${toolName}_${toolVersion}.Dockerfile

#note: neurodocker installs a specific update version of the matlab runtime environment - this could cause problems.

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

0 comments on commit bca65a6

Please sign in to comment.