Skip to content

Commit

Permalink
Prototype of a neurodocker invocation script to produce a container
Browse files Browse the repository at this point in the history
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
  • Loading branch information
yarikoptic committed Mar 27, 2024
1 parent 983b9f0 commit 85b0be6
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions generate_container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/bin/bash

set -eu

generate() {
# more details might come on https://github.com/ReproNim/neurodocker/issues/330
[ "$1" == singularity ] && add_entry=' "$@"' || add_entry=''
#neurodocker generate "$1" \
ndversion=0.9.5
#ndversion=master
#docker run --rm repronim/neurodocker:$ndversion \
# ATM needs devel version of neurodocker for a fix to AFNI recipe
neurodocker \
generate "$1" \
--base-image neurodebian:bookworm \
--ndfreeze date=20240320 \
--copy environment.yml /opt/environment.yml \
--miniconda \
version=latest \
env_name=dsstdeface \
env_exists=false \
yaml_file=/opt/environment.yml \
--pkg-manager=apt \
--install vim wget strace time ncdu gnupg curl procps pigz less tree \
--run "apt-get update && apt-get -y dist-upgrade" \
--afni method=binaries version=latest \
--user=dsst \
--entrypoint "bash"
#--run "curl -sL https://deb.nodesource.com/setup_16.x | bash - " \
#--install nodejs npm \
#--run "npm install -g [email protected]" \
#--fsl version=6.0.7.1 \
}

generate docker > Dockerfile
# generate singularity > Singularity

0 comments on commit 85b0be6

Please sign in to comment.