First complete version

This commit is contained in:
Eric Coissac
2025-10-16 01:07:07 +02:00
parent 57bf9934a3
commit 02b48e75fa
24 changed files with 1265 additions and 110 deletions

View File

@@ -0,0 +1,28 @@
#!/bin/bash
set -e
# Function to create directory
create_r_packages_dir() {
local max_attempts=10
local attempt=1
while [ $attempt -le $max_attempts ]; do
if [ -d "/home/jovyan/work" ]; then
mkdir -p /home/jovyan/work/R_packages
echo "R_packages directory created successfully"
return 0
fi
echo "Waiting for work directory to be mounted (attempt $attempt/$max_attempts)..."
sleep 1
attempt=$((attempt + 1))
done
echo "Warning: Could not verify work directory mount"
return 1
}
# Create R_packages directory
create_r_packages_dir
# Start the single-user server
exec jupyterhub-singleuser "$@"