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 F2C97200C41 for ; Fri, 10 Mar 2017 01:19:48 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id F13C9160B84; Fri, 10 Mar 2017 00:19:48 +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 46A6D160B75 for ; Fri, 10 Mar 2017 01:19:48 +0100 (CET) Received: (qmail 51066 invoked by uid 500); 10 Mar 2017 00:19:47 -0000 Mailing-List: contact dev-help@openwhisk.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openwhisk.apache.org Delivered-To: mailing list dev@openwhisk.apache.org Received: (qmail 51054 invoked by uid 99); 10 Mar 2017 00:19:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Mar 2017 00:19:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9D0261A04C5 for ; Fri, 10 Mar 2017 00:19:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.321 X-Spam-Level: X-Spam-Status: No, score=-0.321 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Bckw7AF2SkJU for ; Fri, 10 Mar 2017 00:19:45 +0000 (UTC) Received: from mail-qk0-f174.google.com (mail-qk0-f174.google.com [209.85.220.174]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D914B5FB5D for ; Fri, 10 Mar 2017 00:19:44 +0000 (UTC) Received: by mail-qk0-f174.google.com with SMTP id p64so146381891qke.1 for ; Thu, 09 Mar 2017 16:19:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rsb/opBhZ6uiE+LkN1SQTa1F872Jnefk1DVpXwyZ6WM=; b=pGdDCIa8jQzFpHCjGGqVZK1TnL8K+u6/OkBeUit2xiZijcxvRLHrARg2k8BsmBhcB4 N8IO1Aq+L01VaJx5POEGoTc/ILq5+LYRUbdrX4NJP2jgG7w5Gsv5zPAUq/ahHnpzI9sh ZIrGdDk5aNMKuF4kwDiTHgRD6lZyDz7LElk3ZNEMEmjxJsSqdN3rpa/HW74px3olpuYc ktKKeRVwnrOMoYwbbzrloMtgLa2ztPIzDv742mVUbolIIUASztylH88KUcaOqcFMrTQb rOYtAaFE0Usi7uAa7vMYVkQnvwpm+8InKlJgIlPpy5G7nleAypcuDDVDRhmm7KznqxB5 T5Yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=rsb/opBhZ6uiE+LkN1SQTa1F872Jnefk1DVpXwyZ6WM=; b=S2xWSffKua6Ec8dbjlPQfBzBqjit8u3RQHoUE5FMX2Ip0+OwOZanXAL+sHkzRkKoC/ Yw1GtWdD3lj4CMQ/GL8YRHIoxazdUgYNjIBMmv74oCDENkWHHHHUVfFLdioFyFCKDEKH c97OEu1wV2O8PmSfAPpx5RFgqZMyuQ5wYc/vy8a31kO97EOkq4Ev0r4ryFXJgLsjMfjV IMCeKMZzV2Drycxx9GzT43cfzuDHPvVmdeippyGWbf4jTXCiXfjl+2dyjQBpa5sRriOj Mk8dD/vb75uHfhDksKhNF/WdVZQKMldrRwxyiJOGU8+uuy7vLZ7xNYR/UISuW1lfXlqZ 9fMA== X-Gm-Message-State: AMke39lnq3GPuJY+qBQkgz8OrzvlaruzS4EgyHuf5rBZaUt80Qig3UsZ6sbDWCE3jj/YrA== X-Received: by 10.200.44.57 with SMTP id d54mr17829501qta.59.1489104822428; Thu, 09 Mar 2017 16:13:42 -0800 (PST) Received: from ?IPv6:2601:184:c302:8580:282d:62c4:ae3e:4e44? ([2601:184:c302:8580:282d:62c4:ae3e:4e44]) by smtp.gmail.com with ESMTPSA id d30sm5338837qtb.18.2017.03.09.16.13.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 09 Mar 2017 16:13:41 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: factoring out "runtimes" into deployment configuration From: Rodric Rabbah X-Mailer: iPhone Mail (14D27) In-Reply-To: Date: Thu, 9 Mar 2017 19:13:41 -0500 Cc: "dev@openwhisk.incubator.apache.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <9545803B-A957-4149-A0D5-0D7802DB333F@adobe.com> To: dev@openwhisk.apache.org archived-at: Fri, 10 Mar 2017 00:19:49 -0000 You can send a zip file to a docker container. So if the image is openwhisk/= dockerskeleton or openwhisk/swift3action it works as you'd expect. In either= case there's no docker pull. And this is doable today already. What am I mi= ssing from your explanation? -r On Mar 9, 2017, at 6:44 PM, Dascalita Dragos wrote: >> Isn't that what we call "blackbox" (docker) actions now? >=20 > IIRC, with "blackbox", developers need to rebuild the image every time, > push it to a registry then invoke the action: > ``` > wsk action create --docker my-blackbox container/name > ``` >=20 > What I was imagining is a case where developers still deploy "code" but, i= n > addition, they get to specify which "container" to use for executing that > code. I.e. > ``` > wsk action create my-action ./my-action.js --kind:container/name:tag > ``` > Assuming that `container/name` extends an existing OW container. >=20 > Now that I'm thinking at this, I'd say that probably a more elegant > solution would be for developers to describe the extra libs in the > `manifest.yaml` then, at deploy time, a control-plane component of OW > builds an optimized container to be used later when invoking the action ..= . > not an easier option to implement though. >=20 >=20 >=20 >=20 > On Thu, Mar 9, 2017 at 2:55 PM Rodric Rabbah wrote: >=20 >>> Extending the thought: what if we allow users to specify a custom >> container >> name when creating / updating actions, in case users want to ? >>=20 >> Isn't that what we call "blackbox" (docker) actions now? >> But in general - the reason for this work - is along these lines. >> Rather than having a small number of fixed images per runtime, >> we can support many more. >>=20 >> A concern however is that we don't want to incur docker pull costs for so= me >> set of curated images (in the future, you can image that docker actions >> come >> with an explicit push operation at create time - but we're not there yet)= . >>=20 >> So by having an extensible list of images, it makes it easier to curate >> action runtimes. >>=20 >> The scenario you describe otherwise is already supported (we know there a= re >> users >> who extend our nodejs base image with their own artifacts). This has the >> benefit >> of pulling in fewer layers. >>=20 >> -r >>=20