Skip to content

Commit

Permalink
Merge branch 'develop' into apptainer_run
Browse files Browse the repository at this point in the history
  • Loading branch information
mesmith75 authored Apr 23, 2024
2 parents 0b39f9c + a2465d0 commit 8ecf969
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ganga/GangaLHCb/Lib/Applications/GaudiExec.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,10 +569,10 @@ def execCmd(self, cmd):
if self.useApptainer or 'slc6' in self.platform:
try:
logger.info('Building inside apptainer: %s' % self.containerLocation)
cmd_to_run = 'apptainer exec --env "PATH=$PATH" --bind $PWD --bind /cvmfs:/cvmfs:ro '\
cmd_to_run = 'source /cvmfs/lhcb.cern.ch/lib/LbEnv && apptainer exec --env "PATH=$PATH" --bind $PWD --bind /cvmfs:/cvmfs:ro '\
+ self.containerLocation + ' ' + cmd_file.name
rc, stdout, stderr = _exec_cmd(cmd_to_run, self.directory)
except:
except BaseException:
logger.error('Failed to build the application inside a container. '
'Perhaps the specified container location is not accessible.')
raise GangaException('Failed to execute make command')
Expand Down

0 comments on commit 8ecf969

Please sign in to comment.