File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 2525 image: {image}
2626 container_name: {job}-{test}-jote
2727 user: '{uid}'
28- entrypoint: /bin/sh
29- command: {working_directory}/{instance_directory}/command
28+ entrypoint: {working_directory}/{instance_directory}/command
29+ command: []
3030 working_dir: {working_directory}
3131 volumes:
3232 - /var/run/docker.sock:/var/run/docker.sock
@@ -175,7 +175,10 @@ def create(self) -> str:
175175 # Now write the command to the instance directory, as `command`.
176176 command_path : str = f"{ inst_path } /command"
177177 with open (command_path , "wt" , encoding = "UTF-8" ) as command_file :
178- command_file .write (self ._command )
178+ command_file .write ("#!/bin/sh\n umask 0002\n " )
179+ command_file .write (self ._command + "\n " )
180+ # And set read/write/execute permission...
181+ os .chmod (command_path , 0o775 )
179182
180183 # nextflow config?
181184 if self ._image_type == "nextflow" :
You can’t perform that action at this time.
0 commit comments