-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathSingularity.v1.0.0
45 lines (34 loc) · 1.26 KB
/
Singularity.v1.0.0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Bootstrap: docker
From: ubuntu:16.04
%help
gradtensor
https://github.com/baxpr/gradtensor/
Gradient coil tensor: estimation from field maps, and correction of b-values
See information in the container's files
/opt/gradtensor/README.md
/opt/gradtensor/usage-singularity.txt
%setup
mkdir -p ${SINGULARITY_ROOTFS}/opt/gradtensor
%files
bin /opt/gradtensor
src /opt/gradtensor
external /opt/gradtensor
LICENSE.txt /opt/gradtensor
README.md /opt/gradtensor
usage-singularity.txt /opt/gradtensor
%labels
Maintainer [email protected]
%post
apt-get update
apt-get install -y wget unzip openjdk-8-jre libxt6
# Download the Matlab Compiled Runtime installer, install, clean up
mkdir /MCR
wget -nv -P /MCR http://ssd.mathworks.com/supportfiles/downloads/R2017a/deployment_files/R2017a/installers/glnxa64/MCR_R2017a_glnxa64_installer.zip
unzip -q /MCR/MCR_R2017a_glnxa64_installer.zip -d /MCR/MCR_R2017a_glnxa64_installer
/MCR/MCR_R2017a_glnxa64_installer/install -mode silent -agreeToLicense yes
rm -r /MCR/MCR_R2017a_glnxa64_installer /MCR/MCR_R2017a_glnxa64_installer.zip
rmdir /MCR
# Create input/output directories for binding
mkdir /INPUTS && mkdir /OUTPUTS
%runscript
/bin/bash -c "cat /opt/gradtensor/usage-singularity.txt"