Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Mar 4, 2025
1 parent e8321bc commit 8537645
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
9 changes: 9 additions & 0 deletions dirac_container.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash
export DIRAC=/home/fstagni/Devs/DIRACGrid/DIRAC
export DIRACOS=/home/fstagni/Devs/DIRACGrid/DIRAC
export X509_CERT_DIR=/etc/grid-security/certificates
export X509_VOMS_DIR=/etc/grid-security/vomsdir
export X509_VOMSES=/etc/grid-security/vomses
export DIRACSYSCONFIG=/home/fstagni/miniforge3/envs/dirac-development/etc/dirac.cfg
source /home/fstagni/miniforge3/envs/dirac-development/diracosrc
miniforge3/envs/dirac-development/bin/dirac-platform
4 changes: 3 additions & 1 deletion src/DIRAC/Core/scripts/dirac_apptainer_exec.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def main():
cmd = ["apptainer", "exec"]
cmd.extend(["--contain"]) # use minimal /dev and empty other directories (e.g. /tmp and $HOME)
cmd.extend(["--ipc"]) # run container in a new IPC namespace
cmd.extend(["--pid"]) # run container in a new PID namespace
cmd.extend(["--bind", f"{os.getcwd()}:/mnt"]) # bind current directory for dirac_container.sh
if proxy_location:
cmd.extend(["--bind", f"{proxy_location}:/etc/proxy"]) # bind proxy file
Expand All @@ -99,7 +100,8 @@ def main():
gLogger.error(result["Message"])
DIRAC.exit(1)
if result["Value"][0] != 0:
gLogger.error(result["Value"][1])
print(result)
gLogger.error(result["Value"][2])
DIRAC.exit(2)
gLogger.notice(result["Value"][1])

Expand Down

0 comments on commit 8537645

Please sign in to comment.