beea455bd09bbc9060b454a449673515b3632890
[dmaap/messagerouter/messageservice.git] / src / main / resources / docker / startup.sh
1 #*******************************************************************************
2 #  ============LICENSE_START=======================================================
3 #  org.onap.dmaap
4 #  ================================================================================
5 #  Copyright © 2017 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 #        http://www.apache.org/licenses/LICENSE-2.0
11 #  
12 #  Unless required by applicable law or agreed to in writing, software
13 #  distributed under the License is distributed on an "AS IS" BASIS,
14 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 #  See the License for the specific language governing permissions and
16 #  limitations under the License.
17 #  ============LICENSE_END=========================================================
18 #
19 #  ECOMP is a trademark and service mark of AT&T Intellectual Property.
20 #  
21 #*******************************************************************************
22 root_directory="/appl/${project.artifactId}"
23 config_directory="/appl/${project.artifactId}/bundleconfig"
24 runner_file="appl/${project.artifactId}/lib/ajsc-runner-${ajscRuntimeVersion}.jar"
25
26 echo "AJSC HOME directory is " $root_directory
27 echo "AJSC Conf Directory is" $config_directory
28 echo "Starting using" $runner_file
29
30
31 echo "10.12.6.214 aaf-onap-beijing-test aaf-onap-beijing-test.osaaf.org aaf-onap-test.osaaf.org" >> /etc/hosts
32 java -jar  -XX:MaxPermSize=256m -XX:PermSize=32m  -DSOACLOUD_SERVICE_VERSION=0.0.1 -DAJSC_HOME=$root_directory -DAJSC_CONF_HOME=$config_directory -DAJSC_SHARED_CONFIG=$config_directory -DAJSC_HTTPS_PORT=3905 -Dplatform=NON-PROD -DPid=1306 -Dlogback.configurationFile=/appl/dmaapMR1/bundleconfig/etc/logback.xml -Xmx512m -Xms512m  $runner_file context=/ port=3904 sslport=3905