bcgsc / orca

:whale: Genomics Research Container Architecture
http://www.bcgsc.ca/services/orca
GNU General Public License v3.0
48 stars 13 forks source link

Singularity: linubrew folder disappers with --writable flag #31

Open tmozgach opened 6 years ago

tmozgach commented 6 years ago

Problem: usually a singularity container is read-only (brew install, apt-get don't work). In order to edit a container, --writable flag is used. However, the brew command disappeared (see a sample script below) because linuxbrew folder doesn't exist in the folder /home!

singularity pull docker://tmozgacheva/orca:latest
singularity shell orca-latest.mg

Singularity orca-latest.img:~/sing> which brew
/home/linuxbrew/.linuxbrew/bin/brew

exit

singularity shell --writable orca-latest.mg
Singularity orca-latest.img:~/sing> which brew
Singularity orca-latest.img:~/sing> 
Singularity orca-latest.img:~/sing> brew --version
bash: brew: command not found

Question: could we adapt the singularity for our purpose because we need a function that edits a container !?

tmozgach commented 6 years ago

@sjackman if you are planing to play with Singularity, the above major issue that we faced.