Remove all references to artifactgenerator config
[aai/babel.git] / src / main / bin / start.sh
1 #!/bin/sh
2
3 # ============LICENSE_START=======================================================
4 # org.onap.aai
5 # ================================================================================
6 # Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
7 # Copyright (c) 2017-2019 European Software Marketing Ltd.
8 # ================================================================================
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
12 #
13 #      http://www.apache.org/licenses/LICENSE-2.0
14 #
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
20 # ============LICENSE_END=========================================================
21
22 APP_HOME="${APP_HOME:-/opt/app/babel}"
23
24 if [ -z "${CONFIG_HOME}" ]; then
25         echo "CONFIG_HOME must be set in order to start the process"
26         exit 1
27 fi
28
29 if [ -z "${KEY_STORE_PASSWORD}" ]; then
30         echo "KEY_STORE_PASSWORD must be set in order to start the process"
31         exit 1
32 fi
33
34 PROPS="-DAPP_HOME=${APP_HOME}"
35 PROPS="${PROPS} -DCONFIG_HOME=${CONFIG_HOME}"
36 PROPS="${PROPS} -Dtosca.mappings.config=${CONFIG_HOME}/tosca-mappings.json"
37 PROPS="${PROPS} -DKEY_STORE_PASSWORD=${KEY_STORE_PASSWORD}"
38 JVM_MAX_HEAP=${MAX_HEAP:-1024}
39
40 exec java -Xmx${JVM_MAX_HEAP}m ${PROPS} -jar ${APP_HOME}/babel.jar