Don't persist workspace directory#292
Conversation
| volumes: | ||
| - .:/workspace:cached | ||
| - work:/home/rstudio:cached | ||
| tmpfs: |
There was a problem hiding this comment.
why does the workspace directory needs to be empty?
There was a problem hiding this comment.
wb resource mount first unmounts all resources:
which requires the workspace directory to be empty:
If this fails, resources will fail to be mounted
|
You mentioned in the jira item's comments that
Why is this not the case for r-studio? |
I think the intention was to persist user files and configurations across app restarts (#93) but out of the apps changed r-studio is the only one we still have. vscode mounts a volume to I could change the persisted directory to |
If I'm reading this correctly, seems like for other apps, including jupyter-template, the home directory is '/home/jupyter'. |
Yeah rstudio is the only app that mounts a persistent volume to the home directory |
june-hua
left a comment
There was a problem hiding this comment.
Looks like the setup (i.e. whether home directory mounts persistent volume, the working directory path) differs between r-studio, vscode, and jupyterlab.
Would it be possible to make this consistent across all apps? Not sure what the rationale was behind this difference?
cc @yuhuyoyo
The workspace directory needs to be empty to remount resources. Mount a tmpfs volume over the workspace directory so it will always be empty even if the home directory is persisted with a volume.
PHP-114909