Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup $HOME while building docker image? #1648

Closed
yarikoptic opened this issue May 22, 2019 · 1 comment · Fixed by #1768
Closed

cleanup $HOME while building docker image? #1648

yarikoptic opened this issue May 22, 2019 · 1 comment · Fixed by #1768
Labels
container effort: low Estimated low effort task impact: low Estimated low impact task
Milestone

Comments

@yarikoptic
Copy link
Contributor

Was surprised to find that fmriprep provides its own $HOME, which is I guess a good thing in general although interferes with my "reproducible interactive shell session" effort in ReproNim/containers#9 .

But that HOME comes with npm caches etc which I guess are not needed and could be safely removed?

yoh@smaug:~$ ls -lta
total 6
drwxr-xr-x 1 root root   60 May 22 18:59 ..
drwxrwxrwx 7 root root  159 May 22 17:40 .
drwxrwxrwx 3 root root   51 May 22 17:40 .conda
drwxrwxrwx 4 root root   79 May 22 17:40 .npm
drwxrwxrwx 4 root root   56 May 15 21:01 .cache
drwxrwxrwx 4 root root   52 May 15 21:01 .config
drwxrwxrwx 2 root root    3 May  4 23:26 .empty
-rw-rw-rw- 1 root root  655 Jun 24  2016 .profile
-rw-rw-rw- 1 root root  220 Aug 31  2015 .bash_logout
-rw-rw-rw- 1 root root 3771 Aug 31  2015 .bashrc
yoh@smaug:~$ find | nl | tail
  2220  ./.npm/_cacache/index-v5/ff/48
  2221  ./.npm/_cacache/index-v5/ff/48/5e30648e089b4166b1a323ec42c2a63a71a338904b4b7469fe1edf540ccf
  2222  ./.npm/_cacache/index-v5/ff/91
  2223  ./.npm/_cacache/index-v5/ff/91/9d656f6de7d20eb4cb7872af9b8d6c7ec9acd113d2b5375d6b17036c0852
  2224  ./.npm/_cacache/index-v5/ff/d3
  2225  ./.npm/_cacache/index-v5/ff/d3/eca629ba696cac5a91e13f61bb768d7cbf82072f798d17071572ab3943f2
  2226  ./.npm/_cacache/tmp
  2227  ./.npm/_locks
  2228  ./.npm/anonymous-cli-metrics.json
  2229  ./.profile
yoh@smaug:~$ du -scm .
34      .
34      total
yoh@smaug:~$ fmriprep --version
fmriprep v1.4.0

this is within singularity image from https://www.singularity-hub.org/collections/2761

@oesteban oesteban added container effort: low Estimated low effort task impact: low Estimated low impact task labels May 22, 2019
@oesteban oesteban added this to the 1.4.2 milestone Jul 9, 2019
@oesteban
Copy link
Member

I'm assuming this means cleaning up .npm, .conda and .empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
container effort: low Estimated low effort task impact: low Estimated low impact task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants