Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9E54B200B27 for ; Wed, 8 Jun 2016 02:52:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9CAEC160A4F; Wed, 8 Jun 2016 00:52:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E364E160A36 for ; Wed, 8 Jun 2016 02:52:10 +0200 (CEST) Received: (qmail 92328 invoked by uid 500); 8 Jun 2016 00:52:10 -0000 Mailing-List: contact dev-help@taverna.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@taverna.incubator.apache.org Delivered-To: mailing list dev@taverna.incubator.apache.org Received: (qmail 92316 invoked by uid 99); 8 Jun 2016 00:52:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Jun 2016 00:52:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 73621180E5F for ; Wed, 8 Jun 2016 00:52:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4v2EP_hGbwlr for ; Wed, 8 Jun 2016 00:52:07 +0000 (UTC) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com [209.85.218.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 1AF5E5FAF4 for ; Wed, 8 Jun 2016 00:52:06 +0000 (UTC) Received: by mail-oi0-f44.google.com with SMTP id p204so108767820oih.3 for ; Tue, 07 Jun 2016 17:52:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=BYnX/Sab3H3GM0Df3whSIEyscvBxJTrlNgRumeX7Vls=; b=gDscxxoq159VmDG8HQN+ZPCuBy9ENgU5urRNxUB8WLR56GVVLGWM2hhET144kKVil5 34CL7msixkG138EgVq/ygIZrYy63SAMsajf7n9nyxVdt/sITzAq0FCBqDsR/GyKIAHOe Jk6tkiqVHNivmWWSYhliQu4fburgRW1nMuKY92PBtibjzksWzk4jEGmSC5j9sFqOilFl 89vM3NuyrSF1poO0qDitTKdz6A9RfvRc1DVtpeANpufu51kexpI3zkuFjsIGfOO12st4 a9vSp1NPzDUjg+lE2adIScjRVZWnz5cLjvgJcxiZziJGVjxX2HRJWQPft+XdDhmaRDgi tJtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=BYnX/Sab3H3GM0Df3whSIEyscvBxJTrlNgRumeX7Vls=; b=l7FOx51Nu23xn8k/pib1Juv2OMBDRqXHJWFWmjTqlmOHCa6pSRMFcPmI3bIuh6fJHJ uKHiuZJ/KDx+i0DnD3GAST53sqHwiYYxRcfAtaOczqOpvqrgnhoMxLxKi3OC4C93YH6Z VNLmsczk2sRZ+2MaXTXczLmtndfaJpp2kcDXY/jUDPfDgEBncnIUJamQZsLrfURiiL3Q p9sN7DOj+N3KNWmkvwPSKEVgsdouHYxueBxIvUL6odr523m0HGrnxxvXdlRaTGZjp1pg 5xku7nAJEO3FI4Wq5ghJ8imYwZs1BvaTDxZdAFzPs6QmbIDscaYbnYfqY0+sbuKm0vAO 8/qg== X-Gm-Message-State: ALyK8tKv0ACucgYCzNULFw+mMkgMk5S5zyslUc+dfxd9+2YRLWNRVlZf+UzwJh88CFz453AqMb28OXn3zg/CsQ== X-Received: by 10.157.48.36 with SMTP id d33mr1494753otc.30.1465347125967; Tue, 07 Jun 2016 17:52:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.1.213 with HTTP; Tue, 7 Jun 2016 17:52:05 -0700 (PDT) In-Reply-To: <11bcf975-7600-5a76-0d4c-9dd810681fde@googlemail.com> References: <11bcf975-7600-5a76-0d4c-9dd810681fde@googlemail.com> From: Nadeesh Dilanga Date: Tue, 7 Jun 2016 20:52:05 -0400 Message-ID: Subject: Re: Finalize Docker Invoke JSON format To: dev@taverna.incubator.apache.org Content-Type: multipart/alternative; boundary=001a113de7d0ea80d70534b9b6ae archived-at: Wed, 08 Jun 2016 00:52:11 -0000 --001a113de7d0ea80d70534b9b6ae Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Alan, Can you please elaborate what you mean by " It is not sufficient to just start the container if it expects input data to be sent to stdin, or to be in specific locations." ? When starting a container using remote API, the only response we get is a HTTP status code along with a message body with container id which indicates the container started successfully. I assume you meant more on IF the application in the container expects input data to be applied and sent to stdin, and for such cases how we are going to cater that requirement ? On Mon, Jun 6, 2016 at 4:33 AM, Alan Williams wrote: > On 04-Jun-16 05:10, Nadeesh Dilanga wrote: > >> Hi all, >> I am starting this thread to discuss and finalize the docker commands we >> need to expose for client side(Taverna). >> >> Latest stable docker remote API is version 1.23[1]. And it has several >> APIs >> that can be useful. >> > > Yes. Where do you intend to run the docker containers? That would be > similar to how you can specify where to run tool services - although I > dislike how that is done. > > The original JIRA [2] mentioned about the JSON format to a docker run. I >> hope it meant about the docker config.json ? >> > > That would be a lot of configuration. I am not sure that it is sensible t= o > have it all specified in the workflow. > > Because, given we use remote APIs, I would like to know what are the >> expectations are ? >> >> 1. Do we assume that Images are created and published to the registry. >> > > Yes, certainly for running you will know the registry and the image. > > 2. Do we assume that docker container is created >> > > I don't think you can, as that would mean there are steps needed to be > done before the workflow can be run. > > Given #1 and #2 done, then we are talking about starting the >> container(~docker run). If that is the case, when we use remote APIs we >> only need following, and no need of a JSON: >> >> Request: POST /containers/(id or name)/start >> Response: HTTP/1.1 204 No Content >> >> There are other responses too: >> >> Status Codes: >> >> - *204* =E2=80=93 no error >> - *304* =E2=80=93 container already started >> - *404* =E2=80=93 no such container >> - *500* =E2=80=93 server error >> > > You will need to look at how the input data is read and the results > returned. It is not sufficient to just start the container if it expects > input data to be sent to stdin, or to be in specific locations. > > [1] - >> https://docs.docker.com/engine/reference/api/docker_remote_api_v1.23/ >> > > Alan > > > --001a113de7d0ea80d70534b9b6ae--