Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
Tal Gitelman | 7e3cfec | 2017-08-20 20:49:00 +0300 | [diff] [blame] | 3 | export CHEFNAME=${ENVNAME} |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 4 | cd /root/chef-solo |
| 5 | echo "normal['HOST_IP'] = \"${HOST_IP}\"" > /root/chef-solo/cookbooks/sdc-simulator/attributes/default.rb |
Tal Gitelman | 7e3cfec | 2017-08-20 20:49:00 +0300 | [diff] [blame] | 6 | chef-solo -c solo.rb -E ${CHEFNAME} |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 7 | |
Tal Gitelman | 7e3cfec | 2017-08-20 20:49:00 +0300 | [diff] [blame] | 8 | sed -i '/^set -e/aJAVA_OPTIONS=\"-Xdebug -Xmx128m -Xms128m -Xss1m -Dconfig.home=${JETTY_BASE}/config/sdc-simulator -Dlog.home=${JETTY_BASE}/logs -Dlogback.configurationFile=${JETTY_BASE}/config/sdc-simulator/logback.xml -Djetty.logging.dir=${JETTY_BASE}/logs -Djetty.base=${JETTY_BASE} \"' /docker-entrypoint.sh |
Tal Gitelman | fa22290 | 2017-08-16 13:44:31 +0300 | [diff] [blame] | 9 | sed -i '/^set -e/aTMPDIR=${JETTY_BASE}\/temp' /docker-entrypoint.sh |
| 10 | |
| 11 | cd /var/lib/jetty |
| 12 | /docker-entrypoint.sh |
| 13 | |