Chaogan-Yan / DPABI

DPABI: a toolbox for Data Processing & Analysis of Brain Imaging
http://rfmri.org/DPABI
GNU Lesser General Public License v2.1
89 stars 43 forks source link

WIP: Dockerfile: extract ctf files #40

Closed octomike closed 4 years ago

octomike commented 4 years ago

Hi!

I'm trying to make this toolbox run on our Linux cluster using sinuglarity.

We can bootstrap a container super easy with

docker build dpabi.sif docker://cgyan/dpabi:4.3_200401

However, a feature of singularity containers is the fact that they are read-only by design. The way precompiled matlab programs work is that matlab extracts the ctf archive once after the first call. This fails, because it can't write into the singularity filesystem. It would also result in (unwanted?) docker data.

By extracting the archives once upon container build the size increases a little (marginally when compared to the 8+GB of its total size), but supports singularity. This patch does just that.

Chaogan-Yan commented 4 years ago

Thanks! Just merged and will test soon.

Best,

Chao-Gan

On Fri, Aug 28, 2020 at 8:59 PM Michael notifications@github.com wrote:

Hi!

I'm trying to make this toolbox run on our Linux cluster using sinuglarity.

We can bootstrap a container super easy with

docker build dpabi.sif docker://cgyan/dpabi:4.3_200401

However, a feature of singularity containers is the fact that they are read-only by design. The way precompiled matlab programs work is that matlab extracts the ctf archive once after the first call. This fails, because it can't write into the singularity filesystem. It would also result in (unwanted?) docker data.

By extracting the archives once upon container build the size increases a little (marginally when compared to the 8+GB of its total size), but supports singularity. This patch does just that.

You can view, comment on, or merge this pull request online at:

https://github.com/Chaogan-Yan/DPABI/pull/40 Commit Summary

  • Dockerfile: extract ctf files

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Chaogan-Yan/DPABI/pull/40, or unsubscribe https://github.com/notifications/unsubscribe-auth/AARM2UTFH54765J5OZO6JNTSC6S2ZANCNFSM4QODKHYQ .

-- Chao-Gan YAN, Ph.D. Professor, Principal Investigator Director, International Big-Data Center for Depression Research Deputy Director, Magnetic Resonance Imaging Research Center Institute of Psychology, Chinese Academy of Sciences 16 Lincui Road, Chaoyang District, Beijing 100101, China

Initiator http://rfmri.org/DPARSFDPABI http://rfmri.org/DPABI http://rfmri.org/DPARSF, DPABISurf, http://rfmri.org/DPABISurfDPARSF http://rfmri.org/DPARSF, and The R-fMRI Network http://rfmri.org ( RFMRI.ORG http://rfmri.org/) http://rfmri.org/yan http://scholar.google.com/citations?user=lJQ9B58AAAAJ