Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | export CHEFNAME=${ENVNAME} |
| 4 | cd /root/chef-solo |
| 5 | echo "normal['HOST_IP'] = \"${HOST_IP}\"" > /root/chef-solo/cookbooks/sdc-elasticsearch/attributes/default.rb |
| 6 | |
| 7 | sed -i '/^exec/iES_JAVA_OPTS=\"-Xms1024M -Xmx1024M\"' /docker-entrypoint.sh |
| 8 | |
| 9 | chef-solo -c solo.rb -E ${CHEFNAME} |
| 10 | |
| 11 | /docker-entrypoint.sh elasticsearch & |
| 12 | |
| 13 | cd /root/chef-solo |
| 14 | chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_3_create_audit_template] |
| 15 | chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_4_create_resources_template] |
| 16 | chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_5_create_monitoring_template] |
| 17 | chef-solo -c solo.rb -o recipe[sdc-elasticsearch::ES_6_create_kibana_dashboard_virtualization] |
| 18 | |
| 19 | while true; do sleep 2; done |