Skip to content

Commit

Permalink
this might already work
Browse files Browse the repository at this point in the history
  • Loading branch information
stebo85 committed Sep 19, 2024
1 parent 9e9ed0f commit e9b2dec
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
15 changes: 15 additions & 0 deletions recipes/samsrfx/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

----------------------------------
## samsrfx/0.0.1 ##
conn standalone with Matlab Compiler Runtime

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

More documentation can be found here:

To run container outside of this environment: ml samsrfx/0.0.1

----------------------------------
37 changes: 37 additions & 0 deletions recipes/samsrfx/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/usr/bin/env bash
set -e

export toolName='samsrfx'
export toolVersion='0.0.1'

if [ "$1" != "" ]; then
echo "Entering Debug mode"
export debug=$1
fi

source ../main_setup.sh

neurodocker generate ${neurodocker_buildMode} \
--base-image ubuntu:22.04 \
--pkg-manager apt \
--run="printf '#!/bin/bash\nls -la' > /usr/bin/ll" \
--run="chmod +x /usr/bin/ll" \
--run="mkdir -p ${mountPointList}" \
--matlabmcr version=2023b method=binaries \
--workdir /opt/${toolName}-${toolVersion}/ \
--install wget openjdk-8-jre \
--run="wget --no-check-certificate --progress=bar:force -P /opt/${toolName}-${toolVersion}/ https://object-store.rc.nectar.org.au/v1/AUTH_dead991e1fa847e3afcca2d3a7041f5d/build/SamSrfX.zip \
&& unzip -q SamSrfX.zip -d /opt/${toolName}-${toolVersion}/ \
&& chmod a+x /opt/${toolName}-${toolVersion}/run_SamSrfX.sh \
&& chmod a+x /opt/${toolName}-${toolVersion}/SamSrfX \
&& rm -f SamSrfX.zip" \
--env DEPLOY_BINS=SamSrfX \
--env PATH=/opt/${toolName}-${toolVersion}/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
--copy README.md /README.md \
> ${toolName}_${toolVersion}.Dockerfile

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

#

0 comments on commit e9b2dec

Please sign in to comment.