Skip to content

Commit

Permalink
Merge pull request #81 from jaytmiller/add-symlink-crds-to-all-startups
Browse files Browse the repository at this point in the history
Added symlink-crds to Roman and TIKE post-startup-hook's
  • Loading branch information
jaytmiller authored Jan 7, 2025
2 parents 0a83991 + d589668 commit f28c4e4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 6 deletions.
17 changes: 13 additions & 4 deletions deployments/roman/environments/post-start-hook
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,18 @@ HUB_FLAG=${1:-"on-hub"}
set +e # Do not let init failures block logins

# .............................................................................................
# Initialization of the shared CRDS cache if it exists for this mission.
# # CRDS cache setup and sharing
#
# Only a hub installation is guaranteed to have a shared CRDS cache
# which can be exploited by symlinking. Note that this symlinking
# process is a definite improvement over normal CRDS caching since a
# user's cache can share system files while remaining writable for
# files which are not available globally.
# .............................................................................................

if [[ $HUB_FLAG == "on-hub" ]]; then
/opt/common-scripts/symlink-crds
# /opt/common-scripts/kernel-setup
fi
# .............................................................................................
# Sync reference notebook directories / branches.
# .............................................................................................
Expand All @@ -43,7 +52,7 @@ set +e # Do not let init failures block logins
# Remove old/unused kernels from UI selection
# .............................................................................................
/opt/common-scripts/remove-kernel jdaviz

# .............................................................................................
# Test notebook setup if applicable
# .............................................................................................
# .............................................................................................
14 changes: 12 additions & 2 deletions deployments/tike/environments/post-start-hook
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,18 @@ HUB_FLAG=${1:-"on-hub"}
set +eu # Do not let init failures block logins

# .............................................................................................
# Initialization of the shared CRDS cache if it exists for this mission.
# .............................................................................................
# # CRDS cache setup and sharing
#
# Only a hub installation is guaranteed to have a shared CRDS cache
# which can be exploited by symlinking. Note that this symlinking
# process is a definite improvement over normal CRDS caching since a
# user's cache can share system files while remaining writable for
# files which are not available globally.
# .............................................................................................
if [[ $HUB_FLAG == "on-hub" ]]; then
/opt/common-scripts/symlink-crds
# /opt/common-scripts/kernel-setup
fi

# .............................................................................................
# Sync reference notebook directories / branches.
Expand Down

0 comments on commit f28c4e4

Please sign in to comment.