Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions apps/code-server/template/script.sh.erb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/bash -l
<% is_sofia = OodAppkit.clusters.any? { |c| c.id.to_s == "sofia" } %>
DATA_DIR="<%= is_sofia ? '$HOME' : '$VSC_DATA' %>"

<%= ERB.new(File.read('../common_files/work_directory_change.sh.erb'), eoutvar: 'child').result(binding) %>

Expand All @@ -8,15 +10,17 @@ echo "TIMING - Starting main script at: $(date)"
# Make symlinks for ~/.vscode and ~/.vscode-server
for dir in .vscode .vscode-server; do
if [[ ! -e ~/"$dir" ]]; then
mkdir -v -p "$VSC_DATA/$dir"
ln -v -s "$VSC_DATA/$dir" ~/"$dir"
mkdir -v -p "$DATA_DIR/$dir"
<% unless is_sofia %>
ln -v -s "$DATA_DIR/$dir" ~/"$dir" # already at $HOME on sofia
<% end %>
fi
done

module load code-server

extensions_dir="${VSC_DATA}/.config/code-server/extensions"
data_dir="${VSC_DATA}/.config/code-server/data"
extensions_dir="${DATA_DIR}/.config/code-server/extensions"
data_dir="${DATA_DIR}/.config/code-server/data"

mkdir -p "$extensions_dir"
mkdir -p "$data_dir"
Expand Down
9 changes: 7 additions & 2 deletions apps/code-tunnel/template/custom.sh.erb
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash
<% is_sofia = OodAppkit.clusters.any? { |c| c.id.to_s == "sofia" } %>
DATA_DIR="<%= is_sofia ? '$HOME' : '$VSC_DATA' %>"

# Make symlinks for ~/.vscode and ~/.vscode-server
for dir in .vscode .vscode-server; do
if [[ ! -e ~/"$dir" ]]; then
mkdir -v -p "$VSC_DATA/$dir"
ln -v -s "$VSC_DATA/$dir" ~/"$dir"
mkdir -v -p "$DATA_DIR/$dir"
<% unless is_sofia %>
ln -v -s "$DATA_DIR/$dir" ~/"$dir" # already at $HOME on sofia
<% end %>
fi
done

Expand All @@ -27,6 +31,7 @@ custom="$confdir/custom.conf"
cat > $custom<<EOF
new-session -d -s $TSES
set -g status off #NOTE: this will disable the status bar (green text in the bottom)
pipe-pane -o -t $TSES 'cat >> $OOD_SESSION_STAGED_ROOT/tunnel_session.log'
EOF

IFS=$'\n' # set the Internal Field Separator to newline
Expand Down
4 changes: 2 additions & 2 deletions apps/code-tunnel/template/custom_commands.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export VSCODE_CLI_USE_FILE_KEYCHAIN=1
reset
echo
echo "Copy the device code, open the url and paste it to create the tunnel vsc-$USER-$(hostname -d | sed 's/.os$//')"
echo "Copy the device code, open the url and paste it to create the tunnel vsc-$USER-$VSC_INSTITUTE_CLUSTER"
echo
code tunnel --accept-server-license-terms --name vsc-$USER-$(hostname -d | sed "s/.os$//")
code tunnel --accept-server-license-terms --name vsc-$USER-$VSC_INSTITUTE_CLUSTER
2 changes: 2 additions & 0 deletions apps/rstudio/form.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ attributes:
widget: "select"
options:
- ["2025a: RStudio-Server/2025.09.2+418 + R/4.5.1", "2025a"]
<% unless is_sofia %>
- ["2024a: RStudio-Server/2024.12.0+467 + R/4.4.2", "2024a"]
- ["2023a: RStudio-Server/2023.12.1+402 + R/4.3.2", "2023a"]
- ["2022a: RStudio-Server/2022.07.2+576 + R/4.2.1", "2022a"]
<% end %>
help: |
R-bundle-CRAN and R-bundle-Bioconductor are loaded by default.
clean_workspace:
Expand Down
4 changes: 2 additions & 2 deletions apps/rstudio/template/script.sh.erb
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/usr/bin/bash -l

<% is_sofia = OodAppkit.clusters.any? { |c| c.id.to_s == "sofia" } %>
<%= ERB.new(File.read('../common_files/work_directory_change.sh.erb'), eoutvar: 'child').result(binding) %>

# Benchmark info
echo "TIMING - Starting main script at: $(date)"

# Set XDG_DATA_HOME to redirect the rstudio cache
if [[ -z "$XDG_DATA_HOME" ]]; then
export XDG_DATA_HOME="$VSC_DATA/.local/share"
export XDG_DATA_HOME="<%= is_sofia ? '$HOME' : '$VSC_DATA' %>/.local/share"
echo "setting XDG_DATA_HOME=$XDG_DATA_HOME"
fi

Expand Down
5 changes: 4 additions & 1 deletion ondemand-vub.spec
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ install -Dpm644 %{_datadir}/ondemand-vub/%1/ondemand.d/general_options.yml %{_sy

Summary: Scripts, customizations and tools for Open OnDemand
Name: ondemand-vub
Version: 2.52
Version: 2.53
Release: 1
BuildArch: noarch
License: GPL
Expand Down Expand Up @@ -104,6 +104,9 @@ chmod 0000 %{_localstatedir}/www/ood/apps/sys/abaqus

%changelog
* Mon Jul 13 2026 Jarne Renders <jarne.thijs.renders@vub.be>
- Adapt rstudio, code-tunnel and code-server apps for sofia
- Add better logging for code-tunnel
* Mon Jul 13 2026 Jarne Renders <jarne.thijs.renders@vub.be>
- Load oodegl.sh inside VNC container on sofia
* Mon Jul 06 2026 Jarne Renders <jarne.thijs.renders@vub.be>
- Restrict py-2 style override to img tags
Expand Down
Loading