Skip to content

Commit

Permalink
remove cleanup-homes, workdir stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdjscott committed Feb 19, 2024
1 parent f0bcf0f commit 22cee47
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 25 deletions.
2 changes: 0 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,3 @@ RUN git clone https://github.com/chrisdjscott/ood-k8s-utils.git /opt/ood-k8s-uti

RUN echo "#!/bin/bash" > /bin/module \
&& chmod +x /bin/module

COPY cleanup-homes /usr/local/bin/
16 changes: 0 additions & 16 deletions docker/cleanup-homes

This file was deleted.

3 changes: 1 addition & 2 deletions submit.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ script:
native:
container:
name: "rstudio"
image: "ghcr.io/nesi/training-environment-rstudio-app:main"
image_pull_policy: "Always"
image: "ghcr.io/nesi/training-environment-rstudio-app:v0.1.0"
command: ["/bin/bash","-l","<%= staged_root %>/job_script_content.sh"]
restart_policy: 'OnFailure'
env:
Expand Down
7 changes: 2 additions & 5 deletions template/script.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,14 @@ sed 's/^ \{2\}//' > "$WORKING_DIR/rsession.sh" << EOL
# Launch the original command
echo "Launching rsession..."
set -x
exec rsession --session-default-working-dir=~/rstudio-work --session-default-new-project-dir=~/rstudio-projects "\${@}"
exec rsession "\${@}"
EOL
)
chmod 700 "$WORKING_DIR/rsession.sh"
mkdir -p "$WORKING_DIR/logs"
mkdir -p /tmp/rserver-run
mkdir -p ~/rstudio-work
mkdir -p ~/rstudio-projects

# change to home directory
cd ~/rstudio-work
cd $HOME

set -x
# Launch the RStudio Server
Expand Down

0 comments on commit 22cee47

Please sign in to comment.