Skip to content

Commit 85b0be6

Browse files
committed
Prototype of a neurodocker invocation script to produce a container
It is not yet finished - did not even try FSL installation - AFNI installation relies on incomplete fixes proposed in ReproNim/neurodocker#601 - moved away attempt to install bids-validator (would be useful) due those failing too ATM
1 parent 983b9f0 commit 85b0be6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

generate_container.sh

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
#!/bin/bash
2+
3+
set -eu
4+
5+
generate() {
6+
# more details might come on https://github.com/ReproNim/neurodocker/issues/330
7+
[ "$1" == singularity ] && add_entry=' "$@"' || add_entry=''
8+
#neurodocker generate "$1" \
9+
ndversion=0.9.5
10+
#ndversion=master
11+
#docker run --rm repronim/neurodocker:$ndversion \
12+
# ATM needs devel version of neurodocker for a fix to AFNI recipe
13+
neurodocker \
14+
generate "$1" \
15+
--base-image neurodebian:bookworm \
16+
--ndfreeze date=20240320 \
17+
--copy environment.yml /opt/environment.yml \
18+
--miniconda \
19+
version=latest \
20+
env_name=dsstdeface \
21+
env_exists=false \
22+
yaml_file=/opt/environment.yml \
23+
--pkg-manager=apt \
24+
--install vim wget strace time ncdu gnupg curl procps pigz less tree \
25+
--run "apt-get update && apt-get -y dist-upgrade" \
26+
--afni method=binaries version=latest \
27+
--user=dsst \
28+
--entrypoint "bash"
29+
#--run "curl -sL https://deb.nodesource.com/setup_16.x | bash - " \
30+
#--install nodejs npm \
31+
#--run "npm install -g [email protected]" \
32+
#--fsl version=6.0.7.1 \
33+
}
34+
35+
generate docker > Dockerfile
36+
# generate singularity > Singularity

0 commit comments

Comments
 (0)