blob: aca8b5e9846a0e26e5fc4b5ef7fab71ae705a4bf [file] [log] [blame]
Tal Gitelmanfa222902017-08-16 13:44:31 +03001#!/bin/sh
2
Tal Gitelman7e3cfec2017-08-20 20:49:00 +03003export CHEFNAME=${ENVNAME}
Tal Gitelmanfa222902017-08-16 13:44:31 +03004cd /root/chef-solo
5echo "normal['HOST_IP'] = \"${HOST_IP}\"" > /root/chef-solo/cookbooks/sdc-simulator/attributes/default.rb
Tal Gitelman7e3cfec2017-08-20 20:49:00 +03006chef-solo -c solo.rb -E ${CHEFNAME}
Tal Gitelmanfa222902017-08-16 13:44:31 +03007
Tal Gitelman7e3cfec2017-08-20 20:49:00 +03008sed -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 Gitelmanfa222902017-08-16 13:44:31 +03009sed -i '/^set -e/aTMPDIR=${JETTY_BASE}\/temp' /docker-entrypoint.sh
10
11cd /var/lib/jetty
12/docker-entrypoint.sh
13