Initialize persisted directory with the default workspace #140
Replies: 2 comments
-
Hi, The mount path itself may be influenced via the app definition's In production we would usually expect the user to start with an empty workspace initially. We have a ticket about this open (#69), however this does not have priority at the moment. Such a solution would probably use initContainers however. |
Beta Was this translation helpful? Give feedback.
-
Thanks @jfaltermeier, We also suspected that it would be due to mount. We will provide a command to user for setting up a project. |
Beta Was this translation helpful? Give feedback.
-
Hi,
In all the samples I have seen the Theia workspace is not kept under persisted folder. But in real-world scenarios, we would want to preserve the state of the workspace across session restarts. In order to achieve this we tried to copy the workspace from the docker image to the pod "/home/persisted/" using DockerFile. But it is not working, only the lost+found folder is present under "/home/persisted" & all the workspace content is gone.
DockerFile snippet -
How can we initialize the persisted directory with the default workspace? Do we need to extend the operator to add initContainers or any other preferred approach?
Beta Was this translation helpful? Give feedback.
All reactions