I am planning to add a shell script(startup.sh) along with Dockerfile in the source, so that it make required changes and then start the airavata server. This will resolve the issues 2,3,4. like: CMD bash -C './startup.sh';'bash' startup.sh <https://drive.google.com/a/binghamton.edu/file/d/0ByuFJ2KDIjkiaWk4RVZ4cFl6UXM/view?usp=drive_web> For JAVA_HOME dependencies, I remember Suresh knows some changes which can resolve this issue (as he told in previous GSoC meeting).
Thanks Pankaj On Wed, Jul 22, 2015 at 12:00 PM, Pankaj Saha <[email protected]> wrote: > adding one more item in the list > 4. Dockerfile should copy the content of airavata server after maven build > is completed. It will only copy the class files and executable files no > source code is required in the docker image. > Now for each branch, maven is creating zip folder with the branch id like > apache-airavata-server-*0.15*-SNAPSHOT. To automate the docker image > creation we have to provide some common name, otherwise user have to modify > dockerfile every time for different branches. > > > > On Wed, Jul 22, 2015 at 11:47 AM, Pankaj Saha <[email protected]> > wrote: > >> Hello Devs, >> >> Here are few open items that we need to fix before we allow Dockerfile to >> be part of airavata source tree. >> >> 1. airavata-server.sh still has dependency on JAVA_HOME env variable. >> Which we have to change manually after creating docker container. >> >> 2. airavata-server.properties file needs to be modified with host address >> of rabbitmq. Are we planning to pass them as an env variable while running >> the docker? Then we need to change the properties file such that it can >> identify the env variable and replace it. >> >> 3. apiserver.server.host=localhost needs to be changed to the >> apiserver.server.host=container ip. Container ip will the ip address of the >> running container. Which can be fetched by "wk 'NR==1 {print $1}' >> /etc/hosts" command. We need to plan how we are going to feed these values >> to the properties file without manual changes. >> >> Thanks >> Pankaj >> >> >> >
