Skip to content

Commit

Permalink
Merge pull request EESSI#363 from trz42/use_site_install_when_set
Browse files Browse the repository at this point in the history
use NESSI_SITE_INSTALL when it is set
  • Loading branch information
poksumdo authored May 19, 2024
2 parents 0a4e36f + 5e4e294 commit e89e86a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
14 changes: 13 additions & 1 deletion EESSI-extend-2023.06-easybuild.eb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,19 @@ elseif (os.getenv("NESSI_SITE_INSTALL") ~= nil) then
if ((os.getenv("NESSI_PROJECT_INSTALL") ~= nil) or (os.getenv("NESSI_USER_INSTALL") ~= nil)) then
LmodError("You cannot use NESSI_SITE_INSTALL in combination with any other NESSI_*_INSTALL environment variables")
end
easybuild_installpath = string.gsub(os.getenv("EESSI_SOFTWARE_PATH"), 'versions', 'host_injections')
site_install = os.getenv("NESSI_SITE_INSTALL")
site_modulepath = nil
if (site_install ~= nil) then
-- Check the folder exists
if not isDir(site_install) then
LmodError("The location of NESSI_SITE_INSTALL (" .. site_install .. ") does not exist or is not a folder")
end
if (mode() == "load") then
LmodMessage("Configuring for use of NESSI_SITE_INSTALL under " .. site_install)
end
easybuild_installpath = string.gsub(os.getenv("EESSI_SOFTWARE_PATH"), os.getenv("EESSI_CVMFS_REPO"), site_install)
site_modulepath = pathJoin(easybuild_installpath, 'modules', 'all')
end
else
-- Deal with user and project installs
project_install = os.getenv("NESSI_PROJECT_INSTALL")
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 2024-05-19
# Rebuild NESSI-extend/2023.06-easybuild
# The current version does not handle NESSI_SITE_INSTALL correctly.
easyconfigs:
- EESSI-extend-2023.06-easybuild.eb
1 change: 0 additions & 1 deletion eessi_container.sh
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ if [[ "${ACCESS}" == "rw" ]]; then
EESSI_FUSE_MOUNTS+=("--fusemount" "${EESSI_READONLY}")

EESSI_WRITABLE_OVERLAY="container:fuse-overlayfs"
EESSI_WRITABLE_OVERLAY+=" -o lowerdir=/cvmfs_ro/${repo_name}"
if [[ ! -z ${LOWER_DIRS} ]]; then
# need to convert ':' in LOWER_DIRS to ',' because bind mounts use ',' as
# separator while the lowerdir overlayfs option uses ':'
Expand Down

0 comments on commit e89e86a

Please sign in to comment.