Skip to content

Commit

Permalink
fix(htcondorcern): run provided command in unpacked image (#474)
Browse files Browse the repository at this point in the history
Closes #471
  • Loading branch information
mdonadoni committed Nov 21, 2024
1 parent 72e9ea1 commit 9cda591
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reana_job_controller/htcondorcern_job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import base64
import logging
import os
import shlex
import threading
from shutil import copyfile

Expand Down Expand Up @@ -235,9 +236,10 @@ def _copy_wrapper_file(self):
"--bind $PWD:/srv "
"--bind /cvmfs "
"--bind /eos "
"{DOCKER_IMG} {CMD}".format(
"{DOCKER_IMG} "
"bash -c {CMD}".format(
DOCKER_IMG=self.docker_img,
CMD=self._format_arguments() + " | bash",
CMD=shlex.quote(self._format_arguments() + " | bash"),
)
)
f = open("job_singularity_wrapper.sh", "w")
Expand Down

0 comments on commit 9cda591

Please sign in to comment.