Skip to content

cleanup $HOME while building docker image? #1648

Closed
@yarikoptic

Description

@yarikoptic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions