Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing installation and use of project-wide Spack and SHPC recipes. #295

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions scripts/install_shpc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ shpc config remove registry https://github.com/singularityhub/shpc-registry
shpc config add registry "${INSTALL_PREFIX}/${shpc_install_dir}/registry"
shpc config add registry "${INSTALL_PREFIX}/${shpc_install_dir}/pawsey_registry"
shpc config add registry "${USER_PERMANENT_FILES_PREFIX}/\$PAWSEY_PROJECT/\$USER/setonix/$DATE_TAG/shpc_registry"
shpc config add registry "${USER_PERMANENT_FILES_PREFIX}/\$PAWSEY_PROJECT/setonix/$DATE_TAG/shpc_registry"
# user install location for modulefiles
shpc config set "module_base:${USER_PERMANENT_FILES_PREFIX}/\$PAWSEY_PROJECT/\$USER/setonix/$DATE_TAG/${shpc_containers_modules_dir_long}"
# disable default version for modulefiles (original)
Expand Down
10 changes: 10 additions & 0 deletions scripts/templates/spack_create_user_moduletree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,18 @@ repo:
namespace: 'user_repo'
EOF

# create base dir for project-wide Spack repository of recipes
mkdir -p "${project_root_dir}/spack_repo/packages"
cat << EOF >"${project_root_dir}/spack_repo/repo.yaml"
repo:
namespace: 'project_repo'
EOF


# create base dir for user SHPC registry of recipes
mkdir -p "${user_root_dir}/shpc_registry"
# ..and for project-wide recipes
mkdir -p "${project_root_dir}/shpc_registry"

# create base dir for Python pip user installations (PYTHONUSERBASE)
mkdir -p "${user_root_dir}/python"
Expand Down
4 changes: 4 additions & 0 deletions systems/setonix/configs/site/repos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ repos:
#
# This one is for user recipes
- USER_PERMANENT_FILES_PREFIX/$PAWSEY_PROJECT/$USER/setonix/DATE_TAG/spack_repo

# The following is for project-wide recipes
- USER_PERMANENT_FILES_PREFIX/$PAWSEY_PROJECT/setonix/DATE_TAG/spack_repo

#
# Spack user (Pawsey staff) populates this one with fixed recipes for Setonix
# that are not (yet) in the Spack public repo
Expand Down