Alexis de Talhouƫt | a644558 | 2017-03-08 17:33:55 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 2 | |
3 | cd /root/chef-solo | ||||
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 4 | chef-solo -c solo.rb -o recipe[cassandra-actions::01-configureCassandra] -E ${ENVNAME} |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 5 | rc=$? |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 6 | if [[ $rc != 0 ]]; then exit $rc; fi |
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 7 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 8 | echo "########### starting cassandra ###########" |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 9 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 10 | /docker-entrypoint.sh cassandra -f & |
11 | |||||
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 12 | chef-solo -c solo.rb -E ${ENVNAME} |
Areli Fuss | 4631543 | 2018-02-11 12:33:52 +0200 | [diff] [blame] | 13 | rc=$? |
Michael Lando | 50ffa6b | 2018-01-08 10:52:07 +0200 | [diff] [blame] | 14 | if [[ $rc != 0 ]]; then exit $rc; fi |
Areli Fuss | 4631543 | 2018-02-11 12:33:52 +0200 | [diff] [blame] | 15 | while true; do sleep 30; done |
Yuli Shlosberg | 0875ce0 | 2018-01-25 13:53:36 +0200 | [diff] [blame] | 16 | |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 17 |