diff options
author | Yuli Shlosberg <ys9693@att.com> | 2018-02-15 12:04:46 +0200 |
---|---|---|
committer | Yuli Shlosberg <ys9693@att.com> | 2018-02-21 17:28:40 +0200 |
commit | 958c32d2d7a3e5cbd9bc672645cdeb95a49b719a (patch) | |
tree | 1ba5b0d1dbece6daa5618a005d6281bbd5c7c1dc /sdc-os-chef/sdc-backend/startup.sh | |
parent | 4cc47ac3abe00eda7c04b9955e56dafc819e2657 (diff) |
OOM Alignment BE,FE,KBN
Change-Id: I8ff609a6be919d5709ce95af5a6a903aeb7afc43
Issue-ID: SDC-918
Signed-off-by: Yuli Shlosberg <ys9693@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-backend/startup.sh')
-rw-r--r-- | sdc-os-chef/sdc-backend/startup.sh | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/sdc-os-chef/sdc-backend/startup.sh b/sdc-os-chef/sdc-backend/startup.sh deleted file mode 100644 index 8e5926cdc4..0000000000 --- a/sdc-os-chef/sdc-backend/startup.sh +++ /dev/null @@ -1,45 +0,0 @@ -#!/bin/sh - -export CHEFNAME=${ENVNAME} -# executing chef-solo for configuration -cd /root/chef-solo -echo "normal['HOST_IP'] = \"${HOST_IP}\"" > /root/chef-solo/cookbooks/sdc-catalog-be/attributes/default.rb -chef-solo -c solo.rb -E ${CHEFNAME} - -sed -i '/^set -e/aJAVA_OPTIONS=\"-Xdebug -agentlib:jdwp=transport=dt_socket,address=4000,server=y,suspend=n -XX:MaxPermSize=256m -Xmx1500m -Dconfig.home=${JETTY_BASE}\/config -Dlog.home=${JETTY_BASE}\/logs -Dlogback.configurationFile=${JETTY_BASE}\/config\/catalog-be\/logback.xml -Dconfiguration.yaml=${JETTY_BASE}\/config\/catalog-be\/configuration.yaml -Dartifactgenerator.config=${JETTY_BASE}\/config\/catalog-be\/Artifact-Generator.properties\ -Donboarding_configuration.yaml=${JETTY_BASE}\/config\/onboarding-be\/onboarding_configuration.yaml" ' /docker-entrypoint.sh -sed -i '/^set -e/aTMPDIR=${JETTY_BASE}\/temp' /docker-entrypoint.sh - -# executiong the jetty -cd /var/lib/jetty -/docker-entrypoint.sh & - -# add the consumers -cd /root/chef-solo -python /root/chef-solo/cookbooks/sdc-catalog-be/files/default/consumers.py & - -# add the user -python /root/chef-solo/cookbooks/sdc-catalog-be/files/default/user.py & - -# check if BackEnd is up -python /root/chef-solo/cookbooks/sdc-normatives/files/default/check_Backend_Health.py - -# executing the normatives -cd /root/chef-solo -check_normative="/tmp/check_normative.out" -curl -s -X GET -H "Content-Type: application/json;charset=UTF-8" -H "USER_ID: jh0003" -H "X-ECOMP-RequestID: cbe744a0-037b-458f-aab5-df6e543c4090" -H "Cache-Control: no-cache" -H "Postman-Token: af08ca1c-302f-1431-404f-ed84246e07c9" "http://localhost:8080/sdc2/rest/v1/screen" > ${check_normative} - -echo "normal['HOST_IP'] = \"${HOST_IP}\"" > /root/chef-solo/cookbooks/sdc-normatives/attributes/default.rb -resources_len=`cat ${check_normative}| jq '.["resources"]|length'` -if [ $resources_len -eq 0 ] ; then - chef-solo -c normatives.rb -else - sed -i "s/import/upgrade/g" normatives.json - chef-solo -c normatives.rb -fi - -echo "###### DOCKER STARTED #####" - -while true; do sleep 2; done - - - |