Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C99C174D5 for ; Thu, 2 Jul 2015 21:24:10 +0000 (UTC) Received: (qmail 37626 invoked by uid 500); 2 Jul 2015 21:24:10 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 37576 invoked by uid 500); 2 Jul 2015 21:24:10 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 37565 invoked by uid 99); 2 Jul 2015 21:24:10 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Jul 2015 21:24:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BCAA9D1BEF for ; Thu, 2 Jul 2015 21:24:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.979 X-Spam-Level: ** X-Spam-Status: No, score=2.979 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id gAwMW2U-dnYk for ; Thu, 2 Jul 2015 21:24:08 +0000 (UTC) Received: from mail-ob0-f173.google.com (mail-ob0-f173.google.com [209.85.214.173]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 8C3BF20DB7 for ; Thu, 2 Jul 2015 21:24:07 +0000 (UTC) Received: by obbop1 with SMTP id op1so58063734obb.2 for ; Thu, 02 Jul 2015 14:24:06 -0700 (PDT) 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:date :message-id:subject:from:to:content-type; bh=TV7eiDXOJcPsfAa+E2MCGwAkWZL/9NuIynspXF7G7hQ=; b=TfE5jEEYysakIErzX+7pfYtnDdfkQ2biksMFkmUBHGX87FK0ohWiRvNvs+ZyAXyhAT XTwFhAxw2z9mzu12LYPgs8Ex/i5pY21ZcH3XemlDRkl9KCm7gJOnPZaVFMXBHwLG5IOX 5rAFbSbaqKL1rhRg+S5teWXFlrwQg+S6GXXwauMkWHlGKpBgAXkKsbJ7yFRHWXbKBPUx wOD8vKpRTNVpGbQJ7TZ1nbFSmDSJBR5bjsNJOMguhINH+XC+zF7A+6kmmCv6K5x9hwd3 x9NtPWId92QIDgEVS04f+Viqv1XnDCSXFKHojZRFJQKBgczp093pL48Nj39/pmSDcwKj g1uA== X-Gm-Message-State: ALoCoQnjDcUNvHjRBlH0xo3BnBSLx1wya/4xrYx8sInQLzM349Ljc2zP/C2af4Cx97rEJqg+MYui MIME-Version: 1.0 X-Received: by 10.202.199.79 with SMTP id x76mr31233323oif.121.1435872246229; Thu, 02 Jul 2015 14:24:06 -0700 (PDT) Received: by 10.202.89.84 with HTTP; Thu, 2 Jul 2015 14:24:06 -0700 (PDT) Received: by 10.202.89.84 with HTTP; Thu, 2 Jul 2015 14:24:06 -0700 (PDT) In-Reply-To: References: Date: Thu, 2 Jul 2015 17:24:06 -0400 Message-ID: Subject: Re: Airavata Docker Available !! From: Pankaj Saha To: dev@airavata.apache.org Content-Type: multipart/alternative; boundary=001a1134eb4c2e101d0519eb0f5a --001a1134eb4c2e101d0519eb0f5a Content-Type: text/plain; charset=UTF-8 Hi Shameera Yes we can see the containers ip they way you suggested. What I mentioned is another way in case you are already inside the container. Regarding java path variable yes we can do that with ENV in docker file. It was throwing some errors so i just commented that in the docker file. I will send you the docker file in another email then we can go through together to improve it. I was trying mesos today and didnt have time to fix that. We can do it later as we are already running late for the mesos implementation. Thanks Pankaj On 02-Jul-2015 5:12 PM, "Shameera Rathnayaka" wrote: > Hi Pankaj, > > See my comments inline. > > >> docker attach server >>> >> awk 'NR==1 {print $1}' /etc/hosts ---- note the ip address of the >>> running container >> >> > can't we use "docker inspect --format '{{ .NetworkSettings.IPAddress }}' > server " to get airavata server docker container ip ? > > >> >> >> pico airavata-server.properties >> >> >> Replaces the below text as suggested below >> apiserver.server.host= ** >> default.registry.gateway=*default* >> rabbitmq.broker.url=amqp://**:5672 >> save changes. >> >> pico /etc/bash.bashrc >> >> >> add below lines at the end >> >> #JAVA_HOME >>> JAVA_HOME=/opt/jdk/jdk1.8.0_05 >>> >> > You can improve you docker file to add this variables using ENV command. > > >> export JAVA_HOME >>> PATH=$JAVA_HOME/bin:$PATH >>> export PATH >> >> save changes. >> > > How you install java 8?, There is a way to install java on docker which > automatically available in PATH variable. You don't have to set it here. It > is good if you can show us the Dockerfiles then we can review those files. > is it available online ? > > Thanks, > Shameera. > --001a1134eb4c2e101d0519eb0f5a Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Hi Shameera
Yes we can see the containers ip they way you suggested. What I mentioned i= s another way in case you are already inside the container.

Regarding java path variable yes we can do that with ENV in = docker file. It was throwing some errors so i just commented that in the do= cker file.

I will send you the docker file in another email then we can= go through together=C2=A0 to improve it.

I was trying mesos today and didnt have time to fix that. We= can do it later as we are already running late for the mesos implementatio= n.

Thanks
Pankaj

On 02-Jul-2015 5:12 PM, "Shameera Rathnayak= a" <shameerainfo@gmail.co= m> wrote:
Hi Pankaj,=C2=A0

See my comments inline.=C2=A0

docker attach server
awk 'NR= =3D=3D1 {print $1}' /etc/hosts =C2=A0 =C2=A0---- note the ip address of= the running container

c= an't we use "docker inspect --format '{{ .NetworkSettings.IPAd= dress }}' server " to get airavata server docker container ip ?=C2= =A0
=C2=A0
<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;pa= dding-left:1ex">=C2=A0
pico aira= vata-server.properties
=C2=A0
Replaces the below text as suggested belo= w
apiserver.server.host=3D <current containers ip ad= dress>
=
default.registry.<= span style=3D"font-size:12.8000001907349px">gateway=3Ddefault=
rabbitmq.b= roker.url=3Damqp://<rabbit MQ's ip address>:5672
save changes.

pico /etc/bash.ba= shrc
=C2=A0
add below lines at the end

#JAVA_HOME
JAVA_HOME=3D/opt/jdk/jdk1.8.0_05

You can impro= ve you docker file to add this variables using ENV command.=C2=A0
=C2=A0
export JAVA_HOME
PATH=3D$JAVA_HOME/bin:$PATH
export PATH
save changes.

How you install java 8?, There is a wa= y to install java on docker which automatically available in PATH variable.= You don't have to set it here. It is good if you can show us the Docke= rfiles then we can review those files. is it available online ?=C2=A0
=

Thanks,=C2=A0
Shameera.
--001a1134eb4c2e101d0519eb0f5a--