BT2983 | 5a39828 | 2018-07-23 13:11:35 -0600 | [diff] [blame] | 1 | #!/bin/sh |
BT2983 | 9cbcdac | 2018-08-16 21:48:07 -0600 | [diff] [blame] | 2 | #============LICENSE_START======================================================= |
| 3 | # ONAP : CCSDK.apps |
| 4 | # ================================================================================ |
| 5 | # Copyright (C) 2018 AT&T Intellectual Property. All rights reserved. |
| 6 | # ================================================================================ |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
| 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | #============LICENSE_END========================================================= |
| 19 | |
BT2983 | 5a39828 | 2018-07-23 13:11:35 -0600 | [diff] [blame] | 20 | touch /app.jar |
BT2983 | 9cbcdac | 2018-08-16 21:48:07 -0600 | [diff] [blame] | 21 | APP_ARGS=-Dspring.profiles.active=${SPRING_PROFILE} |
| 22 | APP_ARGS=${APP_ARGS}" -Dpolicymgr_url="${POLICYMGR_URL}" -Dinstar_aaf_enc_pass="${AAF_PASS_ENC} |
| 23 | APP_ARGS=${APP_ARGS}" -Daai_cert_pass="${AAI_CERT_PASSWORD}" -Daai_uribase="${AAI_URI_BASE} |
| 24 | APP_ARGS=${APP_ARGS}" -Dneng_db_user="${NENG_DB_USER}" -Dneng_db_pass="${NENG_DB_PASS} |
| 25 | APP_ARGS=${APP_ARGS}" -Dneng_db_url="${NENG_DB_URL} |
| 26 | APP_ARGS=${APP_ARGS}" -cp /opt/etc/config" |
| 27 | |
| 28 | echo "APP_ARGS ="${APP_ARGS} |
| 29 | java -Djava.security.egd=file:/dev/./urandom ${APP_ARGS} -Xms1024m -Xmx1024m -jar /app.jar --spring.config.location=/opt/etc/config/ > /tmp/app.out 2> /tmp/app.err |