Skip to content

Commit 64f36fa

Browse files
committed
Call docker bash script directly
1 parent f9e70c2 commit 64f36fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SequenceAnalysis/api-src/org/labkey/api/sequenceanalysis/run/DockerWrapper.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public void executeWithDocker(List<String> containerArgs, File workDir, Pipeline
150150
writer.println("\t-e " + key + "='" + _dockerEnvironment.get(key) + "' \\");
151151
}
152152
writer.println("\t" + _containerName + " \\");
153-
writer.println("\t/bin/bash " + dockerBashScript.getPath());
153+
writer.println("\t" + dockerBashScript.getPath());
154154
writer.println("DOCKER_EXIT_CODE=$?");
155155
writer.println("echo 'Docker run exit code: '$DOCKER_EXIT_CODE");
156156
writer.println("exit $DOCKER_EXIT_CODE");
@@ -169,7 +169,7 @@ public void executeWithDocker(List<String> containerArgs, File workDir, Pipeline
169169

170170
localBashScript.setExecutable(true);
171171
dockerBashScript.setExecutable(true);
172-
execute(Arrays.asList(localBashScript.getPath()));
172+
execute(Arrays.asList("/bin/bash", localBashScript.getPath()));
173173
}
174174

175175
public void addToDockerEnvironment(String key, String value)

0 commit comments

Comments
 (0)