-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Addressing the Time-Consuming chown -R Command in scripts/init_userconf.sh #889
Comments
I believe that RStuido Sever saves the settings in the home directory, so it could not be started if you do not have write permission to the home directory. As in general, I don't think the entire home directory should be bind-mounted. So I am against adding complexity for such a purpose. Also, I don't know why you would want to specify another user name in the first place. |
thanks @eitsupi
|
I'm sorry, but I don't understand what you are trying to say. If you don't like the scripts we put in place, you can write your own and run them in the container.
See https://rocker-project.org/images/versioned/rstudio.html#editing-work-on-rstudio-server and rstudio/rstudio#14445 (comment)
Does that mean you need to create other users in the container? I do not know if such usage is common. In any case, it has been two years since the username change via the USER environment variable was deprecated and I will remove it in the near future. |
Container image name
rocker/rstudio:4.0.0
Container image digest
No response
What operating system are you seeing the problem on?
Linux
System information
Bug description
When starting a container, instead of using the default user, I configure a different user and have encountered an issue: if the home directory contains many subdirectories, starting the container becomes very time-consuming. The reason for this is that the chown -R command in scripts/init_userconf.sh (https://github.com/rocker-org/rocker-versioned2/blob/master/scripts/init_userconf.sh#L174) is very time-intensive. In another issue(#489), others suggested abandoning the functionality to modify the user, but I don't think we need to discard this feature. Is it possible to simply remove the chown -R command and let the user ensure the permissions of the home directory themselves? Alternatively, could we add a new environment variable that triggers the chown -R command when set?
How to reproduce this bug?
No response
The text was updated successfully, but these errors were encountered: