Re: Problem starting cassandra from a Entrypoint script

2014-10-29 Thread Sajith Kariyawasam
On Thu, Oct 16, 2014 at 8:06 AM, Vishanth Balasubramaniam < vishan...@wso2.com> wrote: > Hi, > > There is a problem with starting the cassandra from the Entrypoint at the > docker file. BUT it totally works fine when I run the script > (run_scripts.sh) inside the instance (ssh root@10.11.12.2). >

Re: Problem starting cassandra from a Entrypoint script

2014-10-16 Thread Vishanth Balasubramaniam
Hi Udara, Tried to wait till it pings the hostname from the script before starting the cassandra with the following line and identified that the hostname is not getting resolved. while ! ping -c1 $(hostname) &>>/tmp/hostname.log; do echo "IP is not UP" >> /tmp/hostname.log ; sleep 5 ; done And

Re: Problem starting cassandra from a Entrypoint script

2014-10-15 Thread Udara Liyanage
Hi Vishanth, When you ssh into the instance and execute the run script, it works and when add as a entry point it does not means there may a difference between the users who execute the script. When you ssh and execute, you execute as root users. @Sajith what is the user who execute the script whe

Problem starting cassandra from a Entrypoint script

2014-10-15 Thread Vishanth Balasubramaniam
Hi, There is a problem with starting the cassandra from the Entrypoint at the docker file. BUT it totally works fine when I run the script (run_scripts.sh) inside the instance (ssh root@10.11.12.2). The following line is used in the docker file to call the run script at Entrypoint ENTRYPOINT /us