Skip to content

Commit

Permalink
changes way that 'command' option is passed to k8s on the Job object …
Browse files Browse the repository at this point in the history
…to cater for multi line commands.
  • Loading branch information
pcm32 committed Apr 13, 2016
1 parent 0d21b52 commit 6cbbbfe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/galaxy/jobs/runners/kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ def __get_k8s_containers(self, job_wrapper):
k8s_container = {
"name": self.__get_k8s_container_name(job_wrapper),
"image": self.__assemble_k8s_container_image_name(job_wrapper),
# this form of command overrides the entrypoint and allows multi command
# command line execution, separated by ;, which is what Galaxy does
# to assemble the command.
# TODO possibly shell needs to be set by job_wrapper
"command": "[\"/bin/bash\",\"-c\",\""+job_wrapper.runner_command_line+"\"]",
"volumeMounts": {
"mountPath": self.runner_params['k8s_persistent_volume_claim_mount_path'],
"name": self._galaxy_vol_name
Expand Down

0 comments on commit 6cbbbfe

Please sign in to comment.