README 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. 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
  16. mv *.rpm /vagrant
  17. ```
  18. ### Starting a service
  19. Starting a service:
  20. cp /usr/local/share/redisraft/systemd_redis.example /lib/systemd/system/redis-19901.service
  21. vi the file and change the IP address
  22. systemctl daemon-reload
  23. systemctl enable redis-19901.service
  24. systemctl start redis-19901.service
  25. systemctl status redis-19901.service
  26. ### Setting up a full cluster example
  27. Modify the following file to match your infra
  28. /usr/local/share/redisraft/setup-raft-cluster