run.sh 756 B

12345678910111213141516171819202122232425262728
  1. #!/bin/sh
  2. rm -rf /tmp/m1.data /tmp/m2.data /tmp/m3.data
  3. goreman -f /certs/Procfile start &
  4. # TODO: remove random sleeps
  5. sleep 7s
  6. ETCDCTL_API=3 ./etcdctl \
  7. --cacert=/certs/ca.crt \
  8. --cert=/certs/server.crt \
  9. --key=/certs/server.key.insecure \
  10. --endpoints=https://localhost:2379 \
  11. endpoint health --cluster
  12. ETCDCTL_API=3 ./etcdctl \
  13. --cacert=/certs/ca.crt \
  14. --cert=/certs/server.crt \
  15. --key=/certs/server.key.insecure \
  16. --endpoints=https://localhost:2379,https://localhost:22379,https://localhost:32379 \
  17. put abc def
  18. ETCDCTL_API=3 ./etcdctl \
  19. --cacert=/certs/ca.crt \
  20. --cert=/certs/server.crt \
  21. --key=/certs/server.key.insecure \
  22. --endpoints=https://localhost:2379,https://localhost:22379,https://localhost:32379 \
  23. get abc