From 2f14d74f4b9722694b9fa66a41bcdfd196dd6a7d Mon Sep 17 00:00:00 2001 From: Carl Boettiger Date: Mon, 27 Nov 2023 17:54:50 +0000 Subject: [PATCH] gitpod setup --- .devcontainer/setup.sh | 6 ------ .gitpod-setup.sh | 5 +++++ .gitpod.yml | 4 ++++ 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 .gitpod-setup.sh diff --git a/.devcontainer/setup.sh b/.devcontainer/setup.sh index 4a19cee..d033e22 100755 --- a/.devcontainer/setup.sh +++ b/.devcontainer/setup.sh @@ -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 - - diff --git a/.gitpod-setup.sh b/.gitpod-setup.sh new file mode 100644 index 0000000..c131eee --- /dev/null +++ b/.gitpod-setup.sh @@ -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 diff --git a/.gitpod.yml b/.gitpod.yml index 6b3da05..72da3c1 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1 +1,5 @@ image: ghcr.io/boettiger-lab/nasa-tops:latest +tasks: + - init: bash ./.gitpod-setup.sh + - before: bash .devcontainer/setup.sh +