berkeley-dsep-infra / datahub

JupyterHubs for use by Berkeley enrolled students
https://docs.datahub.berkeley.edu
BSD 3-Clause "New" or "Revised" License
62 stars 37 forks source link

Cleanup /tmp in datahub image #2689

Open ryanlovett opened 3 years ago

ryanlovett commented 3 years ago

Bug description

There's a lot of empty directories in /tmp as well as others containing tarballs from R package installation. The size of /tmp was 119M for one user. It might be good to clean up /tmp towards the end of the Dockerfile. On some occassion it might be helpful to know what the image creation put in /tmp versus what the user's processes put there.

Environment & setup

How to reproduce

ls /tmp of newly started user server.

felder commented 3 years ago

@yuvipanda would it make sense to slip in a rm -rf /tmp/* at the bottom of the Dockerfile or is there actually stuff there that's necessary?