-
Notifications
You must be signed in to change notification settings - Fork 184
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
How to use rocker-org/shiny in singularity #781
Comments
Have you tried this? |
It works in the beginning.
But it looks like that the same error happens when I run shiny by non-root user, which is the same as in singularity.
|
have you tried running it with a writable tmp?
|
For SingularityCE (or Apptainer), the following seems sufficient to launch shiny server (accessible from http://localhost:3838 ; the #!/bin/sh
set -o errexit
SCRATCH=$(mktemp -d)
singularity exec shiny_4.3.3.sif sed -e "/run_as/s/shiny/$(id -un)/" /etc/shiny-server/shiny-server.conf > ${SCRATCH}/shiny-server.conf
## uncomment to serve your own directory of shiny apps on the host
# export SINGULARITY_BIND=${PWD}/my-apps:/srv/shiny-server
singularity exec \
--cleanenv \
--containall \
--bind ${SCRATCH}/shiny-server.conf:/etc/shiny-server/shiny-server.conf \
--workdir ${SCRATCH} \
--scratch /var/log \
--scratch /var/lib/shiny-server/bookmarks \
shiny_4.3.3.sif shiny-server |
Container image name
shiny_4.3.3
Container image digest
No response
What operating system related to this question?
Linux
System information
No response
Question
I use singularity to run shiny.
podman pull docker.io/rocker/shiny
podman save --format oci-archive --output shiny.tar docker.io/rocker/shiny
singularity build shiny.sif oci-archive://shiny.tar
singularity run shiny.sif
s6-mkdir: warning: unable to mkdir /var/run/s6: Read-only file system
I found this tutorial about rstudio (https://rocker-project.org/use/singularity.html). But no tutorial about shiny was provided. Any suggestions would be highly appreciated.
The text was updated successfully, but these errors were encountered: