Conversation
phlg
marked this pull request as draft
September 18, 2026 07:30
Member
|
Hi @phlg, thank you very much for looking into this known issue and providing a basis for implementation. I'll have to look into it a bit and see how it behaves on the open instance. If it looks fine, I'm all for this to become the standard behavior, as it would then align RStudio on the other images of our stack that run with a non-root user -- a well-known best practice of Docker images after all. So IMO no need to look further into implementing it at runtime or building at as separate rootless image, let's focus on making sure that a rootless RStudio image works as intended in all contexts. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello,
This PR aims at changing some elements related to the rstudio image in order to allow it to run rootless. This is neither standard (see for instance this issue) nor comprehensively tested, but some basic testing was done and the service appears to run properly. The baseline for the implementation come from this other issue, and revolves around replacing the
/inits6 entrypoint with a direct call torserver.The other meaningful changes are :
chownto setonyxia(through the pre-existing${USERNAME}variable) as the owner of several RStudio related directories. Without this, launching RStudio or authenticating on it triggers some permission denied errors.USERenvironment variable (toonyxia, in the same manner). This is a bit of a mystery ; when running as root, this variable is properly set (I suppose from this ?), but not anymore after implementing the other changes. This variable is required for authentication (see also : thepam-helperscript from rocker).As it is, there are some issues / choices I'd like a review of before considering a potential merge :
configure-rstudio.shscript. But with the latter, I could not find a way to set theUSERenvironment variable that would make it visible to the actual rserver process (which implies broken authentication). Not sure this would end up as a better way though, so this point is kind of moot./init, but should I instead split the images (so we have arstudioimage, and then a separaterstudio-rootlessimage) ?Thanks for your input !