On 03/10/2016 06:29 AM, André Gemünd wrote:
Regarding installation: is it possible to put a default configuration file in 
the installation tree of EasyBuild? We are several users that deploy software, 
and the systems used to build vary as well. I'd prefer not to configure these 
nodes differently for that or have different settings based on user accounts. 
I'm now setting INSTALLPATH_SOFTWARE, INSTALLPATH_MODULES, SOURCEPATH, etc. in 
a profile.d script, which I then need to deploy everywhere. I think this is 
needlessly complicated, if all I would need is for easybuild to parse a config 
file in its install path?


We've currently gone with Alan's solution... just create a module out of
the EasyBuild module dir but in the MODULEPATH with the settings
for whatever "class" of settings you want.

e.g. on our system, I do

ml EasyBuild # loads latest EasyBuild build of EasyBuild
ml EasyBuild-ada # loads settings for our ada cluster
eb (whatever)

The latter module looks like this:

[j-perdue@ada2 ada]$ cat /software/tamusc/modulefiles/EasyBuild-ada/0.lua
whatis([[Description: EasyBuild environment for ada.tamu.edu]])
prereq("EasyBuild")
pushenv("EASYBUILD_PREFIX","/software/easybuild")
pushenv("EASYBUILD_BUILDPATH","/tmp/easybuild")
pushenv("EASYBUILD_DEPRECATED","2.0")
pushenv("EASYBUILD_MODULES_TOOL","Lmod")
pushenv("EASYBUILD_REPOSITORYPATH","/software/easybuild/ebfiles_repo/ada")
pushenv("EASYBUILD_ROBOT","/software/easybuild/ebfiles_repo_cleaned/ada")
pushenv("EASYBUILD_SOURCEPATH","/software/easybuild/sources")
pushenv("LMOD_IGNORE_CACHE","1")
pushenv("INTEL_LICENSE_FILE","/software/tamusc/local/etc/intel/licenses")
pushenv("EB_ANSYS_LICENSE_SERVER", "someserver.tamu.edu")
pushenv("EB_ANSYS_LICENSE_SERVER_PORT", "1234:5678")
help([[
Easybuild environment for ada.tamu.edu
]])

Of course, everyone in our group has needed write privs
to the directories where they need them.  Not sure what
your setup there is like.

Anyway... another $.02.

jack

Reply via email to