Skip to content

Commit

Permalink
Update rstudio
Browse files Browse the repository at this point in the history
  • Loading branch information
dmalan authored Sep 12, 2024
1 parent b050138 commit 6bd39e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions opt/cs50/bin/rstudio
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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
Expand Down

0 comments on commit 6bd39e5

Please sign in to comment.