Skip to content

Commit

Permalink
Merge pull request #7 from BenoitCharret/master
Browse files Browse the repository at this point in the history
use public ip for the replica
  • Loading branch information
Grokzen committed Jun 7, 2015
2 parents db4804d + ff474b2 commit 4f8a1c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docker-data/start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
supervisord
sleep 3
echo "yes" | ruby /redis/src/redis-trib.rb create --replicas 1 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005

IP=`ifconfig | grep "inet addr:17" | cut -f2 -d ":" | cut -f1 -d " "`
echo "yes" | ruby /redis/src/redis-trib.rb create --replicas 1 ${IP}:7000 ${IP}:7001 ${IP}:7002 ${IP}:7003 ${IP}:7004 ${IP}:7005
tail -f /var/log/supervisor/redis-1.log

0 comments on commit 4f8a1c2

Please sign in to comment.