Skip to content

Commit

Permalink
updated to support fpga
Browse files Browse the repository at this point in the history
  • Loading branch information
Bianco95 committed Feb 10, 2025
1 parent 99bc5b2 commit 509ffec
Show file tree
Hide file tree
Showing 3 changed files with 300 additions and 61 deletions.
9 changes: 7 additions & 2 deletions change-values.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ cp values_template.yaml values.yaml

source .env

# change those values with the ones you want
HOSTNAME="jhub.131.154.98.62.myip.cloud.infn.it"
HOSTNAME="jhub.131.154.98.240.myip.cloud.infn.it"

# values inside jupyter_template.py
IAM_SERVER="https://iam.cloud.infn.it"
CALLBACK_URL="https://$HOSTNAME:443/hub/oauth_callback"
JHUB_HOST="$HOSTNAME"
JHUB_PORT="443"
JHUB_API_URL="https://$HOSTNAME/hub/api"
VK_NODENAME='gpu-node'
GPU_CAP="1"
FPGA_CAP="1"

sed -i "s|__CALLBACK_URL__|\"$CALLBACK_URL\"|g" jupyterhubcustomconfig.py
sed -i "s|__IAM_SERVER__|\"$IAM_SERVER\"|g" jupyterhubcustomconfig.py
Expand All @@ -25,6 +27,9 @@ sed -i "s|__JHUB_HOST__|\"$JHUB_HOST\"|g" jupyterhubcustomconfig.py
sed -i "s|__JHUB_IP__|\"$HOSTNAME\"|g" jupyterhubcustomconfig.py
sed -i "s|__JHUB_PORT__|\"$JHUB_PORT\"|g" jupyterhubcustomconfig.py
sed -i "s|__JHUB_API_URL__|\"$JHUB_API_URL\"|g" jupyterhubcustomconfig.py
sed -i "s|__VK_NODENAME__|\"$VK_NODENAME\"|g" jupyterhubcustomconfig.py
sed -i "s|__GPU_CAP__|\"$GPU_CAP\"|g" jupyterhubcustomconfig.py
sed -i "s|__FPGA_CAP__|\"$FPGA_CAP\"|g" jupyterhubcustomconfig.py

# values inside values.yaml
JHUB_URL="https://$HOSTNAME:443"
Expand Down
Loading

0 comments on commit 509ffec

Please sign in to comment.