def resolve_template_data(self): """Return template data for container recipe.""" os_deps = det_os_deps(self.easyconfigs) ec = self.easyconfigs[-1]['ec'] # We are using the default MNS inside the container docker_mns = EasyBuildMNS() init_modulepath = os.path.join("/app/modules/all", *docker_mns.det_init_modulepaths(ec)) mod_names = [ docker_mns.det_full_module_name(e['ec']) for e in self.easyconfigs ] eb_opts = [os.path.basename(e['spec']) for e in self.easyconfigs] return { 'os_deps': ' '.join(os_deps), 'eb_opts': ' '.join(eb_opts), 'init_modulepath': init_modulepath, 'mod_names': ' '.join(mod_names), }
def resolve_template_data(self): os_deps = det_os_deps(self.easyconfigs) ec = self.easyconfigs[-1]['ec'] init_modulepath = os.path.join("/app/modules/all", *self.mns.det_init_modulepaths(ec)) mod_names = [ec['ec'].full_mod_name for ec in self.easyconfigs] eb_opts = [os.path.basename(ec['spec']) for ec in self.easyconfigs] return { 'os_deps': ' '.join(os_deps), 'eb_opts': ' '.join(eb_opts), 'init_modulepath': init_modulepath, 'mod_names': ' '.join(mod_names), }