taverna-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stian Soiland-Reyes <st...@apache.org>
Subject Re: Design and Implementation of Docker Activity Plugin
Date Wed, 08 Jun 2016 16:20:22 GMT
I think this is good investigation. I think prototyping with the REST
activity manually from the Taverna Workbench 2.5 is a good way to
learn about the Docker API. Perhaps you could share those experiments
on say myExperiment (if you have workflows) or in the Taverna wiki?

However I am not sure if the REST activity will work well within the
workflow for end-users, if the REST API calls to the Docker API gets a
bit detailed or have to sent with POST - as the user would then have
to create the JSON manually in a previous workflow step.

Also for the outputs, I would think a Docker Activity would output the
STDOUT/STDERR from the docker container, and perhaps a selection of
files from a configured /volume?  But perhaps I'm thinking too much
like the current Tool activity!

On 8 June 2016 at 04:44, Nadeesh Dilanga <nadeesh092@gmail.com> wrote:
> Hi all,
> @"Finalize Docker Invoke JSON format" we are finalizing the JSON for Docker
> start and what input params required from workflow.
> We decide to do some research on existing activity plugins as a starting
> point on designing Docker Activity plugin. Initial suggestion was to check
> out external-tool-activity or command line tool.
> But given we can start Docker through REST, I had a look at the code of
> taverna-rest-activity/RESTActivity.java. Seems we can reuse
> org.apache.taverna.activities.rest.HTTPRequestHandler class and invoke
> docker APIs.
> RESTActivity will put the entire http response to the callback as follows.
> So may be we might be able to extend this to achieve our requirement.  What
> do you think about this ? Any suggestions ?
> callback.receiveResult(outputs, new int[0]);
> <https://github.com/apache/incubator-taverna-common-activities/tree/master/taverna-rest-activity>

Stian Soiland-Reyes
Apache Taverna (incubating), Apache Commons

View raw message