Skip to content

Commit

Permalink
use public ip for the replica
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitCharret committed Jun 7, 2015
1 parent db4804d commit ff474b2
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 ff474b2

Please sign in to comment.