Skip to content

Commit

Permalink
gitpod setup
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Nov 27, 2023
1 parent 4c77b45 commit 2f14d74
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 0 additions & 6 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,3 @@ sudo cp /etc/rstudio/disable_auth_rserver.conf /etc/rstudio/rserver.conf
sudo sudo bash -c 'echo "USER=rstudio" >>/etc/environment'
sudo /init &

## set startup dir
mkdir -p ~/.local/share/rstudio/projects_settings
export RPROJ"=$(ls ${CODESPACE_VSCODE_FOLDER}/*.Rproj)"
echo ${RPROJ} > ~/.local/share/rstudio/projects_settings/last-project-path


5 changes: 5 additions & 0 deletions .gitpod-setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sudo useradd rstudio -u 1000 -s /bin/bash
print pwd
mkdir -p ~/.local/share/rstudio/projects_settings
export RPROJ"=$(ls *.Rproj)"
echo ${RPROJ} > ~/.local/share/rstudio/projects_settings/last-project-path
4 changes: 4 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
image: ghcr.io/boettiger-lab/nasa-tops:latest
tasks:
- init: bash ./.gitpod-setup.sh
- before: bash .devcontainer/setup.sh

0 comments on commit 2f14d74

Please sign in to comment.