README 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. ## Packaging
  2. ```
  3. ansible-galaxy install --roles-path `pwd`/tests/roles rvm.ruby
  4. ```
  5. ### Bulding the package
  6. ```
  7. gem install fpm
  8. mkdir -p /tmp/redisraft
  9. cd /home/redis/redis
  10. make PREFIX=/tmp/redisraft/usr/local install
  11. mkdir -p /tmp/redisraft/usr/local/share/redisraft
  12. cp /home/redis/redisraft/redisraft.so /tmp/redisraft/usr/local/share/redisraft
  13. cp /vagrant/systemd_redis.example /tmp/redisraft/usr/local/share/redisraft
  14. cp /vagrant/setup-raft-cluster /tmp/redisraft/usr/local/share/redisraft
  15. cp /vagrant/misc/failover_timer /tmp/redisraft/usr/local/bin
  16. fpm -s dir -t rpm -n redisraft -v 0.0.1 -p redisraft_VERSION_ARCH.rpm --after-install /vagrant/post_install.sh /tmp/redisraft/usr/local/bin=usr/local /tmp/redisraft/usr/local/share=usr/local
  17. mv *.rpm /vagrant
  18. ```
  19. ### Starting a service
  20. Starting a service:
  21. cp /usr/local/share/redisraft/systemd_redis.example /lib/systemd/system/redis-19901.service
  22. vi the file and change the IP address
  23. systemctl daemon-reload
  24. systemctl enable redis-19901.service
  25. systemctl start redis-19901.service
  26. systemctl status redis-19901.service
  27. ### Setting up a full cluster example
  28. Modify the following file to match your infra
  29. /usr/local/share/redisraft/setup-raft-cluster