blob: 2e3e454c9aa3ec2f861f65977093eef94083f1ae [file] [log] [blame]
BT29835a398282018-07-23 13:11:35 -06001#!/bin/sh
BT29839cbcdac2018-08-16 21:48:07 -06002#============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
BT29835a398282018-07-23 13:11:35 -060020touch /app.jar
BT29839cbcdac2018-08-16 21:48:07 -060021APP_ARGS=-Dspring.profiles.active=${SPRING_PROFILE}
22APP_ARGS=${APP_ARGS}" -Dpolicymgr_url="${POLICYMGR_URL}" -Dinstar_aaf_enc_pass="${AAF_PASS_ENC}
23APP_ARGS=${APP_ARGS}" -Daai_cert_pass="${AAI_CERT_PASSWORD}" -Daai_uribase="${AAI_URI_BASE}
24APP_ARGS=${APP_ARGS}" -Dneng_db_user="${NENG_DB_USER}" -Dneng_db_pass="${NENG_DB_PASS}
25APP_ARGS=${APP_ARGS}" -Dneng_db_url="${NENG_DB_URL}
26APP_ARGS=${APP_ARGS}" -cp /opt/etc/config"
27
28echo "APP_ARGS ="${APP_ARGS}
29java -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