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

update Rstudio & shiny cfg #26

Merged
merged 1 commit into from
Nov 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docker_devbox/work/script-devbox-rstudio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ setup_R_rstudio() {
&& echo "www-verify-user-agent=0">> /etc/rstudio/rserver.conf \
&& echo "database-config-file=/etc/rstudio/db.conf" >> /etc/rstudio/rserver.conf \
&& echo "provider=sqlite" >> /etc/rstudio/db.conf \
&& echo "directory=/etc/rstudio/" >> /etc/rstudio/db.conf ;
&& echo "directory=/var/run/rstudio-server/" >> /etc/rstudio/db.conf \
&& echo "[*]" > /etc/rstudio/logging.conf \
&& echo "log-dir=/var/log" >> /etc/rstudio/logging.conf ;

type rstudio-server && echo "@ Version of rstudio-server: $(rstudio-server version)" || return -1 ;
}
Expand All @@ -37,8 +39,9 @@ setup_R_rshiny() {
&& curl -sL -o /tmp/rshiny.deb ${RSHINY_URL} \
&& dpkg -i /tmp/rshiny.deb \
&& sed -i "s/run_as shiny;/run_as root;/g" /etc/shiny-server/shiny-server.conf \
&& sed -i "s/3838/8888/g" /etc/shiny-server/shiny-server.conf \
&& printf "USER=root exec shiny-server" > /usr/local/bin/start-shiny-server.sh \
&& sed -i "s/srv/root/g" /etc/shiny-server/shiny-server.conf \
&& printf '#!/bin/bash\n' > /usr/local/bin/start-shiny-server.sh \
&& printf 'USER=root exec shiny-server\n' >> /usr/local/bin/start-shiny-server.sh \
&& chmod u+x /usr/local/bin/start-shiny-server.sh

# Remove shiny's pandoc and pandoc-proc to reduce size if they are already installed in the jpy-latex step.
Expand Down
Loading