Skip to content
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

Running the rstudio image in Openshift #747

Open
priggad opened this issue Jan 16, 2024 · 4 comments
Open

Running the rstudio image in Openshift #747

priggad opened this issue Jan 16, 2024 · 4 comments
Labels
help wanted Extra attention is needed question

Comments

@priggad
Copy link

priggad commented Jan 16, 2024

Container image name

rocker/rstudio:4.3.2

Container image digest

ca8f94e1c482afe7c72c9904b4bdf79b6fdf2edf44a5c30b53469bb5f390e38f

What operating system related to this question?

Linux

System information

Openshift version: 4.13.27. OS version: Red Hat Enterprise Linux CoreOS 413.92.202312131705-0. Container runtime version: CRI-O 1.26.4-5.1.rhaos4.13.git969e013.el9

Question

Hi, I'm trying to run the rstudio container image on Openshift and get the following error:
s6-overlay-preinit: fatal: unable to mkdir /var/run/s6: Permission denied
Do you have support/any advise for running on Openshift?

A similar issue has been raised previously (rocker-org/rocker#295) but it isn't clear to me that this was resolved?

@eitsupi
Copy link
Member

eitsupi commented Jan 24, 2024

I don't know about openshift but https://rocker-project.org/use/rootless-podman.html and https://rocker-project.org/use/singularity.html may help for rootless usage.

@priggad
Copy link
Author

priggad commented Feb 23, 2024

@eitsupi thank you for the response. I have been able to run the image as expected with podman on my local machine which is great. When I try to deploy a container to openshift using the same image I get the above permission error which I believe relates to the random UID assigned by openshift to run the container. I raised the question in the hope that either somebody had already found a way to around this problem or that the image could be updated to account for the constraints in an openshift environment.

@vipulg13
Copy link

i am facing a similar issue. The workaround is to handle this at openshift SCC level, however, this makes the environment less secure, which is not a nice thing. It would be great to having a solution at build level itself.

@nathanweeks
Copy link

I don't know about openshift but https://rocker-project.org/use/rootless-podman.html and https://rocker-project.org/use/singularity.html may help for rootless usage.

The security constraints imposed by OpenShift are similar to what unprivileged users on a typical HPC cluster would be subject to, and the approach for running Rocker RStudio Server with SingularityCE/Apptainer (invoking rserver directly) can be used with OpenShift, though it's a bit clunky:

https://nerc-project.github.io/nerc-docs/openshift/applications/creating-your-own-developer-catalog-service/

Alternatively, there is some recent support for RStudio Server in Red Hat OpenShift AI (if your institution has paid for Red Hat OpenShift AI):

https://docs.redhat.com/en/documentation/red_hat_openshift_ai_cloud_service/1/html-single/getting_started_with_red_hat_openshift_ai_cloud_service/index#building-the-rstudio-server-workbench-images_get-started

@eitsupi eitsupi added the help wanted Extra attention is needed label Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question
Projects
None yet
Development

No branches or pull requests

4 participants