From 6bd39e5110d36a1885120aa9e281e13194833374 Mon Sep 17 00:00:00 2001 From: "David J. Malan" Date: Wed, 11 Sep 2024 21:33:26 -0400 Subject: [PATCH] Update rstudio --- opt/cs50/bin/rstudio | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/opt/cs50/bin/rstudio b/opt/cs50/bin/rstudio index 84b4c3d49..bb0878628 100755 --- a/opt/cs50/bin/rstudio +++ b/opt/cs50/bin/rstudio @@ -46,6 +46,9 @@ fi # Pull latest image docker pull "$IMAGE" +# Ensure preferences exist +touch "/workspaces/$RepositoryName/rstudio-prefs.json" + # Create container # https://rocker-project.org/images/versioned/rstudio.html#environment-variables docker create \ @@ -57,6 +60,7 @@ docker create \ --publish 8787:8787 \ --rm \ --volume "$LOCAL_WORKSPACE_FOLDER":"/workspaces/$RepositoryName" \ + --volume "/workspaces/$RepositoryName/rstudio-prefs.json":/home/rstudio/.config/rstudio/rstudio-prefs.json \ "$IMAGE" > /dev/null # Customize rstudio-prefs.json