airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dimuthu...@apache.org
Subject [airavata] branch develop updated: Simplifying docker command execution
Date Thu, 24 Jan 2019 21:21:21 GMT
This is an automated email from the ASF dual-hosted git repository.

dimuthuupe pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata.git


The following commit(s) were added to refs/heads/develop by this push:
     new 63df813  Simplifying docker command execution
63df813 is described below

commit 63df813aac627e515b885152f9c72624d4d46660
Author: Dimuthu Wannipurage <dimuthu.upeksha2@gmail.com>
AuthorDate: Thu Jan 24 16:21:11 2019 -0500

    Simplifying docker command execution
---
 .../org/apache/airavata/helix/impl/task/parsing/DataParsingTask.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/parsing/DataParsingTask.java
b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/parsing/DataParsingTask.java
index 72a29ab..256ae82 100644
--- a/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/parsing/DataParsingTask.java
+++ b/modules/airavata-helix/helix-spectator/src/main/java/org/apache/airavata/helix/impl/task/parsing/DataParsingTask.java
@@ -240,7 +240,8 @@ public class DataParsingTask extends AbstractTask {
 
         logger.info("Successfully pulled image " + parser.getImageName());
 
-        CreateContainerResponse containerResponse = dockerClient.createContainerCmd(parser.getImageName()).withCmd("/bin/sh",
"-c", parser.getExecutionCommand()).withName(containerId)
+        String commands[] = parser.getExecutionCommand().split(" ");
+        CreateContainerResponse containerResponse = dockerClient.createContainerCmd(parser.getImageName()).withCmd(commands).withName(containerId)
                 .withBinds(Bind.parse(localInputDir + ":" + parser.getInputDirPath()),
                         Bind.parse(localOutputDir + ":" + parser.getOutputDirPath()))
                 .withTty(true)


Mime
View raw message