lablup / backend.ai

Backend.AI is a streamlined, container-based computing cluster platform that hosts popular computing/ML frameworks and diverse programming languages, with pluggable heterogeneous accelerator support including CUDA GPU, ROCm GPU, TPU, IPU and other NPUs.
https://www.backend.ai
GNU Lesser General Public License v3.0
483 stars 147 forks source link

Per-user dotfiles #98

Open achimnol opened 4 years ago

achimnol commented 4 years ago

There are many customer requests to preserve the home directory contents, mainly user-installed packages.

The problem is, since our home directories are bind-mounted from each agent's scratch directory, they are not present in Docker images even we perform docker commit against running sessions. The technical reasons to use scratch directories are: 1) better I/O performance, 2) agent customization of home directory before starting containers, and 3) enforcement of quota limits.

Another problem is that some customer sites do not allow use of per-user vfolders due to their organizational policy, though we are offering auto-mounts of dot-prefixed per-user vfolders (e.g., .local and .ssh) if present to all sessions (#57) as an alternative to the above problem.

This issue tackles the second problem: per-user dotfiles.

For small configuration files aka dotfiles, we could just keep them in the user database and pass them to the agent whenever creating a new container, like SSH keypairs stored in the user database (lablup/backend.ai-manager#211). This will be exposed as "user settings" in the GUI and CLI.

┆Issue is synchronized with this Asana task by Unito

achimnol commented 4 years ago

@kyujin-cho I missed to mention the CLI support. Please add the CLI support as well!

achimnol commented 1 year ago

Also related: lablup/backend.ai-manager#329