4 export CHEFNAME=${ENVNAME}
6 sed -i "s/HOSTIP/${HOST_IP}/g" /root/chef-solo/cookbooks/cassandra-actions/recipes/02-createCsUser.rb
7 sed -i "s/HOSTIP/${HOST_IP}/g" /root/chef-solo/cookbooks/cassandra-actions/recipes/03-createDoxKeyspace.rb
8 sed -i "s/HOSTIP/${HOST_IP}/g" /root/chef-solo/cookbooks/cassandra-actions/recipes/04-schemaCreation.rb
10 chef-solo -c solo.rb -o recipe[cassandra-actions::01-configureCassandra] -E ${CHEFNAME}
13 if [[ $rc != 0 ]]; then exit $rc; fi
14 echo "########### starting cassandra ###########"
16 /docker-entrypoint.sh cassandra -f &
18 chef-solo -c solo.rb -E ${CHEFNAME}
21 /tmp/create_cassandra_user.sh
22 /tmp/create_dox_keyspace.sh
23 /bin/chmod +x sdctool/scripts/*.sh
24 ./sdctool/scripts/schemaCreation.sh /tmp/sdctool/config
26 while true; do sleep 2; done