From dev-return-4700-archive-asf-public=cust-asf.ponee.io@openwhisk.apache.org Wed Nov 13 05:00:30 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 97579180656 for ; Wed, 13 Nov 2019 06:00:30 +0100 (CET) Received: (qmail 98894 invoked by uid 500); 13 Nov 2019 05:00:29 -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 98882 invoked by uid 99); 13 Nov 2019 05:00:28 -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, 13 Nov 2019 05:00:28 +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 1AC04180D7B for ; Wed, 13 Nov 2019 05:00:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ihoDRsvhwg5Q for ; Wed, 13 Nov 2019 05:00:25 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.166.67; helo=mail-io1-f67.google.com; envelope-from=chetan.mehrotra@gmail.com; receiver= Received: from mail-io1-f67.google.com (mail-io1-f67.google.com [209.85.166.67]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 9B58CBC509 for ; Wed, 13 Nov 2019 05:00:25 +0000 (UTC) Received: by mail-io1-f67.google.com with SMTP id v17so1038020iol.12 for ; Tue, 12 Nov 2019 21:00:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=E1Z9I2ZqQYrzBKZqvw7JnxfpGX5/2Tbq+gD1ei0/qEg=; b=Omo8UHIUFupFb2zc8sTsHmeB91Sjre4ZS0vAmP+pG4W5Sf1BnSZVP1qcV2Qip7IvDF X4BrEsbFqm/K+ejNi7MrkfwnE9NUSeJsjhHJkrI4p6bhLzzp0MZ7z4hUDXNVsHmwiYJr +hKQbnREvjxGENa5FPgg9y6SE+8M9VH6sT9TNVipYSzqhvceAE1Qua2mpvgDLny1iYTH mFbRscyqkvGsgOeDeTBlTuJ5VuNYmSoCsHyhcZgkXEDRU6I7+zKP435F84ReAVe8e348 IUcS+OqRyW/ysGzbTQ51MRwKUczObWnEwns2AIWx0wjQOSZxfezcMumljOcq+syLCASS zV+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=E1Z9I2ZqQYrzBKZqvw7JnxfpGX5/2Tbq+gD1ei0/qEg=; b=ihWNUA4R189hVXGo+zQgwO7z0iQM/ftBMdtShdpKmmppcAtWU8wnYWqfppOgR82wVo qbgxieqUGDbegQDlZX27AgcpPJmQRSCdDKdLRrAqUBhGg1xtRAr83BCUawRx/8Xvt22F Os8GizmkULjHRyR515PkEQFdzl9rcIiDcgM0VNkLE74xoDyw1WzJQtzRBgBtvlLS3jK3 tW4mYeqPdgZ/uyw7Sl7j59PaggU6juX1oi00NzKu4sf/IscooAu+/gPhkwfRHXaQWTcK uwkNft5adHTkngKUxzp2MuTpUsvwExiAZrkhoG6ETfNJY/7i6AiCL+u7mhTTqpzpaHME RP7A== X-Gm-Message-State: APjAAAVg8j6WmT7uAVaPi48Kz89xk9f+Y2aootgRCRhyOIhI6tpzcMNz 0PQJoWASdj8xQPqSicy0kgh4Dxt2zp1ESWS62OCEflMt X-Google-Smtp-Source: APXvYqxxQb7rgZb9lEw8G0yccMOEovJQdjLaq4ig1BpRhRCRYcc2xQh+wTnD0S2HQIge7xURvpLDIk7fgaRPEx0LojY= X-Received: by 2002:a5d:8051:: with SMTP id b17mr1620500ior.104.1573621224682; Tue, 12 Nov 2019 21:00:24 -0800 (PST) MIME-Version: 1.0 References: <795e62fd-f1ba-4356-ba22-4ac824bf7b27@www.fastmail.com> <6B212E18-B151-4835-A89D-08DDBFD23E33@gmail.com> <8b419bb2-2e84-4b36-bfcf-75b8dd82f0e6@www.fastmail.com> In-Reply-To: From: Chetan Mehrotra Date: Wed, 13 Nov 2019 10:30:13 +0530 Message-ID: Subject: Re: OpenWhisk as a single docker image? To: dev@openwhisk.apache.org Content-Type: multipart/alternative; boundary="0000000000001bbacf0597333e9d" --0000000000001bbacf0597333e9d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Running standalone logic within a Docker would be tricky as there is quite a bit of logic involved to use the right IP for inter docker communications specially in Kafka and Api Gateway part. Hence currently we expect that to use standalone the user has at minimum JDK + Docker on the host Chetan Mehrotra On Tue, Nov 12, 2019 at 10:58 PM Matt Sicker wrote: > Docker in Docker has some slight security improvements depending on > your use case, too, compared to just mounting your docker socket into > the running container. > > On Sat, 9 Nov 2019 at 10:30, Tyson Norris > wrote: > > > > I suspect that due to Docker-in-Docker scenario, it will be easier to > use java+jar (+local docker) instead of running the jar in a container. > > > > Today you can start the jar with only java , but you will need a > bunch of parameters (probably different per OS?) to run it in a container= , > I think. > > Local docker client is switched per OS here > https://github.com/apache/openwhisk/blob/231e739373ef681c44b5647a6956d583= 8a87db2e/core/invoker/src/main/scala/org/apache/openwhisk/core/containerpoo= l/docker/StandaloneDockerContainerFactory.scala#L37 > > I guess this wouldn't apply if running in a container, but it arguably > makes running the jar simpler than running the container IMHO. > > I also suspect you won't get the behavior of launching playground ui to > browser either, which I would miss. > > > > Tyson > > > > =EF=BB=BFOn 11/9/19, 5:38 AM, "Michele Sciabarra" wrote: > > > > Wow. I missed those evolutions. So I guess it should not be hard to > package it as a docker image. > > > > To be able to say to people: execute "docker run -p 8080:8080 > openwhisk/standalone" and enjoy... > > > > If it is possible I can volounteer to write the dockerfile do that.= .. > > > > I have a question: does it use the local docker? Where is the > invoker? > > > > > > -- > > Michele Sciabarra > > michele@sciabarra.com > > > > ----- Original message ----- > > From: Rodric Rabbah > > To: dev@openwhisk.apache.org > > Subject: Re: OpenWhisk as a single docker image? > > Date: Saturday, November 09, 2019 2:31 PM > > > > Do you mean the standalone controller? > https://nam04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fgithu= b.com%2Fapache%2Fopenwhisk%2Fblob%2Fmaster%2Fcore%2Fstandalone%2FREADME.md&= amp;data=3D02%7C01%7Ctnorris%40adobe.com%7Cfc313c39337a44a5882a08d7651a0cbc= %7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C637089034867332217&sdata= =3DOCnWo8R5OfbKLaSQCEeI%2B7pqz0ewp%2BYQGBK2msMoMtc%3D&reserved=3D0 > > > > -r > > > > > On Nov 9, 2019, at 8:18 AM, Michele Sciabarra < > michele@sciabarra.com> wrote: > > > > > > Hello all, > > > > > > I remember the discussion about the openwhisk as a single > executable that includes also Kafka. So I wonder: is it now possible to r= un > (for development purposes of course) OpenWhisk as single docker image if = we > add also couchdb to that one? Because I have an use case where even a > docker-compose can be inconvenient... > > > > > > -- > > > Michele Sciabarra > > > michele@sciabarra.com > > > > > > > -- > Matt Sicker > --0000000000001bbacf0597333e9d--