-
Notifications
You must be signed in to change notification settings - Fork 7
Installing jupyterhub::node on CVMFS
Félix-Antoine Fortin edited this page Apr 5, 2024
·
7 revisions
module load ruby
gem install puppet -v 6.13.0 --user-install
puppet module install puppetlabs/stdlib
puppet module install puppet/selinux
puppet module install puppet/nodejs
# patch getwuid - ruby on CVMFS cannot interact correctly with LDAP
# 1. Open .gem/ruby/2.*/gems/facter-*/lib/facter/resolvers/identity.rb
# 2. Comment lines 20 to 26
# 3. Write and quit
version=v2.2.0
prefix=/cvmfs/soft.computecanada.ca/custom/python/envs/jupyterhub_node/$version
mkdir -p $prefix
wget https://github.com/ComputeCanada/puppet-jupyterhub/archive/$version.tar.gz
puppet module install $version.tar.gz --ignore-dependencies --force --target-dir $prefix/puppet
module load python/3
python=$(which python)
puppet apply -e "class { 'jupyterhub::base::install::venv': prefix => '${prefix}', python => '${python}' }; class { 'jupyterhub::node::install': prefix => '${prefix}' }" --modulepath=$prefix/puppet
chmod -R o+rX $prefix
$prefix/bin/jupyter lab clean