README 1.2 KB

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