-###
+###\r
# ============LICENSE_START=======================================================
# MODEL LOADER SERVICE
# ================================================================================
# Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
# ================================================================================
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
+# Licensed under the Apache License, Version 2.0 (the "License");\r
+# you may not use this file except in compliance with the License.\r
+# You may obtain a copy of the License at\r
+# \r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+# \r
+# Unless required by applicable law or agreed to in writing, software\r
+# distributed under the License is distributed on an "AS IS" BASIS,\r
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+# See the License for the specific language governing permissions and\r
# limitations under the License.
-# ============LICENSE_END=========================================================
-###
-
-# Model Loader Distribution Client Configuration
-ml.distribution.ACTIVE_SERVER_TLS_AUTH=false
-ml.distribution.ASDC_ADDRESS=
-ml.distribution.CONSUMER_GROUP=aai-ml-group
-ml.distribution.CONSUMER_ID=aai-ml
-ml.distribution.ENVIRONMENT_NAME=
-ml.distribution.KEYSTORE_PASSWORD=
-ml.distribution.KEYSTORE_FILE=asdc-client.jks
-ml.distribution.PASSWORD=
-ml.distribution.POLLING_INTERVAL=30
-ml.distribution.POLLING_TIMEOUT=20
-ml.distribution.USER=ci
-ml.distribution.ARTIFACT_TYPES=MODEL_INVENTORY_PROFILE,MODEL_QUERY_SPEC,VNF_CATALOG
-
-# Model Loader AAI REST Client Configuration
-ml.aai.BASE_URL=
-ml.aai.MODEL_URL=/aai/v8/service-design-and-creation/models/model/
-ml.aai.NAMED_QUERY_URL=/aai/v8/service-design-and-creation/named-queries/named-query/
-ml.aai.VNF_IMAGE_URL=/aai/v8/service-design-and-creation/vnf-images
-ml.aai.KEYSTORE_FILE=aai-os-cert.p12
-ml.aai.KEYSTORE_PASSWORD=
-ml.aai.AUTH_USER=ModelLoader
-ml.aai.AUTH_PASSWORD=
+# ============LICENSE_END=========================================================\r
+###\r
+\r
+#!/bin/sh\r
+\r
+BASEDIR="/opt/app/model-loader/"\r
+AJSC_HOME="$BASEDIR"\r
+\r
+if [ -z "$CONFIG_HOME" ]; then\r
+ echo "CONFIG_HOME must be set in order to start up process"\r
+ exit 1\r
+fi\r
+\r
+CLASSPATH="$AJSC_HOME/lib/*"\r
+CLASSPATH="$CLASSPATH:$AJSC_HOME/extJars/"\r
+CLASSPATH="$CLASSPATH:$AJSC_HOME/etc/"\r
+PROPS="-DAJSC_HOME=$AJSC_HOME"\r
+PROPS="$PROPS -DAJSC_CONF_HOME=$BASEDIR/bundleconfig/"\r
+PROPS="$PROPS -Dlogback.configurationFile=$BASEDIR/bundleconfig/etc/logback.xml"\r
+PROPS="$PROPS -DAJSC_SHARED_CONFIG=$AJSC_CONF_HOME"\r
+PROPS="$PROPS -DAJSC_SERVICE_NAMESPACE=model-loader"\r
+PROPS="$PROPS -DAJSC_SERVICE_VERSION=v1"\r
+PROPS="$PROPS -Dserver.port=8080"\r
+PROPS="$PROPS -DCONFIG_HOME=$CONFIG_HOME"\r
+\r
+echo $CLASSPATH\r
+\r
+java -Xms1024m -Xmx4096m -XX:PermSize=2024m $PROPS -classpath $CLASSPATH com.att.ajsc.runner.Runner context=// sslport=8081\r