ReproNim / neurodocker

Generate custom Docker and Singularity images, and minimize existing containers
https://www.repronim.org/neurodocker/
Apache License 2.0
331 stars 97 forks source link

Minizing Docker Image - 2+ commands? #283

Closed unimusic closed 5 years ago

unimusic commented 5 years ago

In the README example, minimizing the docker using reprozip only gives the example where one command is used, cmd="antsMotionCorr -d 3 -a /home/func.nii.gz -o /home/func_avg.nii.gz".

The associated reprozip command is neurodocker reprozip trace ants-container "$cmd"

What if I have 2 or more commands? How would I go about doing this?

Thanks!

kaczmarj commented 5 years ago

hi @unimusic - you can pass multiple commands to the trace command. just be sure to wrap each command in quotes.

neurodocker reprozip trace ants-container "$cmd" "$cmd2" "$cmd3" "$cmdN"
unimusic commented 5 years ago

Okay great. Thank you!