From user-return-23991-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Fri Jan 4 17:13:35 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 [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 55FFA180660 for ; Fri, 4 Jan 2019 17:13:34 +0100 (CET) Received: (qmail 2662 invoked by uid 500); 4 Jan 2019 16:13:28 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 2652 invoked by uid 99); 4 Jan 2019 16:13:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jan 2019 16:13:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id F1732C02F1 for ; Fri, 4 Jan 2019 16:13:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.049 X-Spam-Level: ** X-Spam-Status: No, score=2.049 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-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 (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id SRzYmgAYm1jW for ; Fri, 4 Jan 2019 16:13:25 +0000 (UTC) Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B0CCE61104 for ; Fri, 4 Jan 2019 16:13:24 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id l9so36991261wrt.13 for ; Fri, 04 Jan 2019 08:13:24 -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=gMy51uiZqd5Hq68bBZY0KXiRbuxZ3XAfrM4KevLlVxo=; b=iUuydfgPPd9IFfWpNVQzNeW9Hvrns/R85u3k1mVSYZBfK9q7uDFzwy38ZexAOB5FEQ fX9bvobWXPjsmg8UBo3I0WLeC28HzfFGbaYqx0a4Q1UDjIZAmtp6Y0iIfX3Se5cdd06w TaTyem8rghQRIN8QDbWbO9lBR3rhyol++eYQkPauWNozSEMFrwvxYrX1llsdqY2y8Kau in7Iy7aTOZPc16ECXGu0Y0yZpNRwBzo8ig2QUYNrNSM7m3Sx3EhEuowRNh1+o5O6f7+L xi+mcNeSKQT66R0y551hei85WW+fatzOBfiLUFEU79vmgYKh5mWs0aOg3yBjWM9vCxuc /GaA== 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=gMy51uiZqd5Hq68bBZY0KXiRbuxZ3XAfrM4KevLlVxo=; b=qRwV0DP4imW01JVniGW4neGdkutE944OOIyQmMX9s2/ci4CfnvvD9WOTM8946/ZJm7 mX81wDz60OdvHeQO/F0iEDh+a+5fTHoznI4p8m88xgV9+ZrC/noRqdj1OKxOHNJCeCVf KbXwSSsuOPMjT0c5Ol8SugG/MbRbDL9TL9akuMYsfLPrNXk/Jnm4s5BPw8iYmJ0NkI1W OUCB22aAcpnBTyQsz6SQiwILiYRBf3hk5LYpGZJraD9wFMAJ3jMDXIdPfDFavdJl/APY GYoecI6blXUDcZW41tHfNOWPio1qi8d5LVUgNlstogYwOtaQeXWzK1/ref3p4aL9nWOB 8p1Q== X-Gm-Message-State: AJcUukcvDnHW0RNq0w1Ta8+pOWwOMyUIxlTQLQ/26lO752Wvp2GVrL7M NnXifQYA+Jx+j8ymQoNpnzihdM8eJTZNTzQu0iLReQ== X-Google-Smtp-Source: ALg8bN6i30V8MWTmafFf8JJ1sYazyaZ+PQmZhP1zR7oLLosodx5t2F8eZ8NsCo9ManAAXCq/qB9yzNicSqOP+aYUsn0= X-Received: by 2002:adf:8122:: with SMTP id 31mr46203527wrm.48.1546618404029; Fri, 04 Jan 2019 08:13:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "F.D." Date: Fri, 4 Jan 2019 17:13:12 +0100 Message-ID: Subject: Re: Ignite .NET in docker (linux)? To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="000000000000934778057ea42834" --000000000000934778057ea42834 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes I agree with you. The proxy is needed because in my office is present a firewall. But from my host can use nuget without problems, I got errors only in docker. Thanks, F.D. On Fri, Jan 4, 2019 at 4:30 PM Pavel Tupitsyn wrote: > Looks like you have some network issues and NuGet repository can not be > accessed. > Can you describe your environment? Why is the proxy needed? > > Also I've built and pushed Ignite.NET docker image to my personal hub, > maybe this helps? > * docker run ptupitsyn/ignite:ignite-net* > > Source code: https://github.com/ptupitsyn/ignite-net-docker > > Thanks, > Pavel > > On Thu, Jan 3, 2019 at 5:20 PM F.D. wrote: > >> I've done some further steps. >> >> now the docker file is: >> FROM microsoft/dotnet:2.1-sdk >> >> ENV http_proxy=3D'http://10.0.75.1:3128' >> ENV https_proxy=3D'https://10.0.75.1:3128' >> >> WORKDIR /app >> >> RUN apt update && apt install default-jdk -y --no-install-recommends >> >> COPY *.csproj ./ >> COPY nuget.config ./ >> >> RUN dotnet restore --configfile nuget.config >> >> COPY . ./ >> ENTRYPOINT ["dotnet", "run"] >> >> >> I've added some env variables to permits to the apt to install the jdk. >> But now I've a problem with nuget. >> I added a configuration file: >> >> >> >> >> >> >> But I got this error message: >> >> ---> Running in 1f6391892153 >>> Restoring packages for /app/ignite-docker-test.csproj... >>> /app/ignite-docker-test.csproj : error NU1100: Unable to resolve >>> 'Apache.Ignite (>=3D 2.7.0)' for '.NETCoreApp,Version=3Dv2.1'. >>> Generating MSBuild file >>> /app/obj/ignite-docker-test.csproj.nuget.g.props. >>> Generating MSBuild file >>> /app/obj/ignite-docker-test.csproj.nuget.g.targets. >>> Restore failed in 192.91 ms for /app/ignite-docker-test.csproj. >>> The command '/bin/sh -c dotnet restore --configfile nuget.config' >>> returned a non-zero code: 1 >>> >> >> If I remove >> --configfile nuget.config >> >> I got this error: >> >> ---> Running in 525375280b79 >>> Restoring packages for /app/ignite-docker-test.csproj... >>> /usr/share/dotnet/sdk/2.1.502/NuGet.targets(114,5): error : Unable to >>> load the service index for source https://api.nuget.org/v3/index.json. >>> [/app/ignite-docker-test.csproj] >>> /usr/share/dotnet/sdk/2.1.502/NuGet.targets(114,5): error : The SSL >>> connection could not be established, see inner exception. >>> [/app/ignite-docker-test.csproj] >>> /usr/share/dotnet/sdk/2.1.502/NuGet.targets(114,5): error : The remot= e >>> certificate is invalid according to the validation procedure. >>> [/app/ignite-docker-test.csproj] >>> The command '/bin/sh -c dotnet restore' returned a non-zero code: 1 >>> >> >> In any case I cannot build the image. Can you help me? >> >> Thanks, >> F.D. >> >> On Thu, Jan 3, 2019 at 10:19 AM F.D. wrote: >> >>> Ok, so your idea is to build an image starting from Microsoft .NET >>> image. Then you add the java jdk, and make a c# project that launch the >>> ignite node, is it right? >>> >>> Can you clarify to me these lines: >>> >>> ... >>> RUN dotnet restore >>> ... >>> ENTRYPOINT ["dotnet", "run"] >>> >>> thanks, >>> F.D. >>> >>> >>> >>> On Fri, Dec 21, 2018 at 6:09 PM Pavel Tupitsyn >>> wrote: >>> >>>> Here is a gist to run Ignite.NET in Docker on Linux & .NET Core: >>>> https://gist.github.com/ptupitsyn/1cbbdaef1fef7cc4be22addda19cade4 >>>> >>>> Confirmed to work with Ignite.NET Client on Windows. >>>> >>>> Let me know if you need more info. >>>> Looks like you use some event API with remote filters, make sure that >>>> remote filter class is available on server node and registered in >>>> BinaryConfiguration. >>>> Same is true for any other code that is executed remotely. >>>> >>>> Thanks, >>>> Pavel >>>> >>>> On Fri, Dec 21, 2018 at 2:14 PM F.D. wrote: >>>> >>>>> Thanks for your support, but I need more informations. Let me try to >>>>> give you more details: >>>>> I've launched a ignite node on docker with this command: >>>>> >>>>> docker run -it --rm --name ignite --net=3Dhost apacheignite/ignite >>>>> >>>>> Then I try to connect to my dotnet client with this configuration: >>>>> Snippet >>>>> >>>>> Ignite =3D Ignition.Start(new IgniteConfiguration >>>>> { >>>>> Localhost =3D Dns.GetHostName(), >>>>> ClientMode =3D true, >>>>> DiscoverySpi =3D new TcpDiscoverySpi >>>>> { >>>>> IpFinder =3D new TcpDiscoveryMulticastIpFinder >>>>> { >>>>> LocalAddress =3D "AAA.BBB.CCC.DDD" >>>>> }, >>>>> SocketTimeout =3D TimeSpan.FromSeconds(0.3) >>>>> }, >>>>> IncludedEventTypes =3D EventType.CacheAll, >>>>> }); >>>>> >>>>> But I got this errors on the server node: >>>>> >>>>> [10:36:28,512][SEVERE][sys-stripe-2-#3][query] CacheEntryEventFilter >>>>> failed: class o.a.i.IgniteException: Platforms are not available >>>>> [nodeId=3D861e0f56-6a8b-4ff9-9ea0-a6e5c4d3126b] (Use >>>>> Apache.Ignite.Core.Ignition.Start() or Apache.Ignite.exe to start >>>>> Ignite.NET nodes; ignite::Ignition::Start() or ignite.exe to start Ig= nite >>>>> C++ nodes). >>>>> >>>>> I suppose I should start the .NET Ignite (the thing that I did when I >>>>> didn't use docker). Can you help me? >>>>> >>>>> Thanks, >>>>> F.D. >>>>> >>>>> >>>>> >>>>> On Thu, Dec 20, 2018 at 7:10 PM Pavel Tupitsyn >>>>> wrote: >>>>> >>>>>> 1. Yes, Ignite.NET will run in Linux docker container under .NET >>>>>> Core. >>>>>> You can use microsoft/dotnet:sdk base image, install Java there (apt >>>>>> install default-jdk), and run your app >>>>>> >>>>>> 2. There are no Windows containers with Ignite >>>>>> >>>>>> Thanks, >>>>>> Pavel >>>>>> >>>>>> On Thu, Dec 20, 2018 at 4:07 PM Ilya Kasnacheev < >>>>>> ilya.kasnacheev@gmail.com> wrote: >>>>>> >>>>>>> Hello! >>>>>>> >>>>>>> For the first question: There's no reason that you would not be abl= e >>>>>>> to run Java, Mono or dotnet core Ignite node inside docket, connect= to it >>>>>>> with C# client. >>>>>>> >>>>>>> Should be working as soon as you configure it properly. >>>>>>> >>>>>>> Regards, >>>>>>> -- >>>>>>> Ilya Kasnacheev >>>>>>> >>>>>>> >>>>>>> =D1=87=D1=82, 20 =D0=B4=D0=B5=D0=BA. 2018 =D0=B3. =D0=B2 12:36, F.D= . : >>>>>>> >>>>>>>> Hi Igniters, >>>>>>>> I'd like to know if is it possible to use ignite docker (with linu= x >>>>>>>> O.S.) and connect a ignite client in C#. I suppose no, is it? >>>>>>>> >>>>>>>> So the second question, is already present in the docker repositor= y >>>>>>>> an image for Ignite .NET (with windows O.S.)? >>>>>>>> >>>>>>>> Thanks, >>>>>>>> F.D. >>>>>>>> >>>>>>> --000000000000934778057ea42834 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes I agree with you. The proxy is needed because in = my office is present a firewall. But from my host can use nuget without pro= blems, I got errors only in docker.

Thanks,
<= div>=C2=A0 F.D.


On Fri, Jan 4, 2019 at 4:30 PM Pavel Tupitsyn <ptupitsyn@apache.org> wrot= e:
Looks like you have some network issues and NuGet repo= sitory can not be accessed.
Can you describe your environment? Why is t= he proxy needed?

Also I've built and pushed Ig= nite.NET docker image to my personal hub, maybe this helps?=C2=A0
=C2=A0 =C2=A0 docker run ptupitsyn/ignite:ignite-net

=

Thanks,
Pavel
On Thu, Jan 3, 2019 at 5:20 P= M F.D. <fre= e.devel.70@gmail.com> wrote:
I've done some further steps.

now the docker = file is:
FROM microsoft/= dotnet:2.1-sdk

E= NV http_proxy=3D'http://10.0.75.1:3128'
ENV https_proxy=3D'https://10.0.75.1:3128= 9;

WORKDIR /app

RUN apt update && apt install default-jdk -y --no-install-recommen= ds

COPY *.csproj ./
COPY nuget.config ./

RUN dotnet restore --co= nfigfile nuget.config

COPY . ./
<= div>ENTRYPOINT [&quo= t;dotnet", "run"]


I've added some env variables to permits to t= he apt to install the jdk. But now I've a problem with nuget.
I added a configuration file:
<configurati= on>
<config>
= <add key=3D"http_proxy" value=3D"http://10= .0.75.1:3128" />
</config>
</configura= tion>

But I got this error message:

=C2=A0---> Runni= ng in 1f6391892153
=C2=A0 Restoring packages for /app/ignite-docker-test= .csproj...
/app/ignite-docker-test.csproj : error NU1100: Unable to reso= lve 'Apache.Ignite (>=3D 2.7.0)' for '.NETCoreApp,Version=3D= v2.1'.
=C2=A0 Generating MSBuild file /app/obj/ignite-docker-test.cs= proj.nuget.g.props.
=C2=A0 Generating MSBuild file /app/obj/ignite-docke= r-test.csproj.nuget.g.targets.
=C2=A0 Restore failed in 192.91 ms for /a= pp/ignite-docker-test.csproj.
The command '/bin/sh -c dotnet restore= --configfile nuget.config' returned a non-zero code: 1

If I remove
--configfile nuget.config

I got this error:

=C2=A0---> Running in 525375= 280b79
=C2=A0 Restoring packages for /app/ignite-docker-test.csproj.../usr/share/dotnet/sdk/2.1.502/NuGet.targets(114,5): error : Unable to loa= d the service index for source https://api.nuget.org/v3/index.json. [/app/ignite= -docker-test.csproj]
/usr/share/dotnet/sdk/2.1.502/NuGet.targets(114,5):= error :=C2=A0=C2=A0 The SSL connection could not be established, see inner= exception. [/app/ignite-docker-test.csproj]
/usr/share/dotnet/sdk/2.1.5= 02/NuGet.targets(114,5): error :=C2=A0=C2=A0 The remote certificate is inva= lid according to the validation procedure. [/app/ignite-docker-test.csproj]=
The command '/bin/sh -c dotnet restore' returned a non-zero cod= e: 1

In any case I cannot build t= he image. Can you help me?

Thanks,
=C2=A0=C2=A0 F.D.

On Thu, Jan 3, 2019 at 10:19 AM F.D. <free.devel.70@gmail.com= > wrote:
Ok, so your idea is to build an image starting from Micro= soft .NET image. Then you add the java jdk, and make a c# project that laun= ch the ignite node, is it right?

Can you clarify t= o me these lines:

...
RUN d= otnet restore
...
ENTRYPOINT ["= ;dotnet", "run"]

thanks,
=C2=A0=C2=A0 F.D.



On Fri, Dec 21, 2018 at 6= :09 PM Pavel Tupitsyn <ptupitsyn@apache.org> wrote:

Thanks for your support, but I need more informations. Let me try to= give you more details:
I've launched a ignite node on docker= with this command:

docker run -it --rm --name ign= ite --net=3Dhost apacheignite/ignite

Then I try to= connect to my dotnet client with this configuration:
Snipp= et
Ignite=C2=A0=3D=C2=A0Ig=
nition.Start(new=C2=A0IgniteConfiguration
{
=C2=A0=C2=A0=C2=A0Localhost=C2=A0=3D=
=C2=A0Dns.GetHostName(),
=C2=A0=C2=A0=C2=A0ClientMode=C2=A0=
=3D=C2=A0true,
=C2=A0=C2=A0=C2=A0DiscoverySpi=C2=A0=
=3D=C2=A0new=C2=A0TcpDiscoverySpi
=C2=A0=C2=A0=C2=A0{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0IpFinder=C2=A0=3D=C2=A0new=C2=A0TcpDiscoveryMulticastIpFinde=
r
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0{
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0LocalAddress=C2=A0=3D=C2=A0"AAA.BBB.CCC.DDD"
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 }, =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0SocketTimeout=C2=A0=3D=C2=A0Ti= meSpan.FromSeconds(0.3) =C2=A0=C2=A0=C2=A0}, =C2=A0=C2=A0=C2=A0IncludedEventTypes=C2=A0=3D=C2=A0EventType
.CacheAll, });
But I got this errors on the server node:
[10:36:28,512][SEVERE][sys-stripe-2-#3][query] CacheEntryEvent= Filter failed: class o.a.i.IgniteException: Platforms are not available [no= deId=3D861e0f56-6a8b-4ff9-9ea0-a6e5c4d3126b] (Use Apache.Ignite.Core.Igniti= on.Start() or Apache.Ignite.exe to start Ignite.NET nodes; ignite::Ignition= ::Start() or ignite.exe to start Ignite C++ nodes).

I suppose I should start the .NET Ignite (the thing that I did when I did= n't use docker). Can you help me?

Thanks, =
=C2=A0=C2=A0 F.D.



On Thu, Dec = 20, 2018 at 7:10 PM Pavel Tupitsyn <ptupitsyn@apache.org> wrote:
1. Yes, Ignite.NET will run in Linux docker container under .NET Core.=C2= =A0
You can use=C2=A0microsoft/dotnet:sdk base image, install Java ther= e (apt install default-jdk), and run your app

2. T= here are no Windows containers with Ignite

Thanks,=
Pavel



Hi Igniters,
I'd like to know if is it possible to u= se ignite docker (with linux O.S.) and connect a ignite client in C#. I sup= pose no, is it?

So the second question, is already= present in the docker repository an image for Ignite .NET (with windows O.= S.)?

Thanks,
=C2=A0 F.D.
--000000000000934778057ea42834--