This docker file is not final yet as we have to automate the environment variable to replace the properties file. I believe in a hangout session we can walk through and fix this.
On Mon, Jul 6, 2015 at 9:58 AM, Shameera Rathnayaka <[email protected]> wrote: > Hi Pankaj, > > Let't do this via Apache way, upload these files to publicly accessible > place (as i mentioned in my previous reply) then invite everyone to review > it. > > Regards, > Shameera. > > On Mon, Jul 6, 2015 at 9:44 AM Pankaj Saha <[email protected]> wrote: > >> Hi Shameera, >> Please find the attached Dockerfile for Airavata Server. >> Please suggest changes. >> >> >> On Thu, Jul 2, 2015 at 5:50 PM, Shameera Rathnayaka < >> [email protected]> wrote: >> >>> Hi Pankaj, >>> >>> Yes please share your works with community. Do you have specific >>> location to commit your works? If not you can use this location >>> https://github.com/apache/airavata-sandbox. Let's try to track the >>> changes with VCS. >>> >>> @Suresh do we have specific location for this time gsoc students? >>> >>> Thanks, >>> Shameera. >>> >>> On Thu, Jul 2, 2015 at 5:24 PM Pankaj Saha <[email protected]> >>> wrote: >>> >>>> 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" <[email protected]> >>>> 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= *<current containers ip address>* >>>>>> default.registry.gateway=*default* >>>>>> rabbitmq.broker.url=amqp://*<rabbit MQ's ip address>*: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. >>>>> >>>> >>
