--- /dev/null
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:util="http://www.springframework.org/schema/util"
+ xsi:schemaLocation="
+ http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://www.springframework.org/schema/util
+ http://www.springframework.org/schema/util/spring-util.xsd
+ ">
+
+
+ <bean id="champEventPublisher" class="com.att.ecomp.event.client.DMaaPEventPublisher">
+ <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904"/>
+ <constructor-arg name="topic" value="champRawEventsOnap"/>
+ <constructor-arg name="username" value="test"/>
+ <constructor-arg name="password" value="test"/>
+ <constructor-arg name="maxBatchSize" value="100"/>
+ <constructor-arg name="maxAgeMs" value="250"/>
+ <constructor-arg name="delayBetweenBatchesMs" value="50"/>
+ <constructor-arg name="transportType" value="HTTPAUTH"/>
+ </bean>
+
+ <!-- Graph Implementation Configuration-->
+ <util:map id="props" map-class="java.util.HashMap" key-type="java.lang.String" value-type="java.lang.Object">
+ <entry key="champcore.event.stream.buffer.capacity" value="50" value-type="java.lang.Integer"/>
+ <entry key="champcore.event.stream.publisher-pool-size" value="10" value-type="java.lang.Integer"/>
+ <entry key="champcore.event.stream.publisher" value-ref="champEventPublisher"/>
+
+ <entry key="graph.name" value="aaigraph-onap.dev"/>
+ <entry key="storage.backend" value="hbase"/>
+ <entry key="storage.hostname" value="aai.hbase.simpledemo.onap.org"/>
+
+ <!-- Hbase Config -->
+ <entry key="storage.hbase.ext.hbase.zookeeper.property.clientPort" value="2181"/>
+ <entry key="storage.hbase.ext.zookeeper.znode.parent" value="/hbase-unsecure"/>
+
+ <!-- Cassandra Config -->
+ <entry key="storage.port" value="2181"/>
+ </util:map>
+
+ <!-- Titan Implementation -->
+ <bean id="graphBuilder" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl$Builder">
+ <constructor-arg value="aaigraph-onap.dev"/>
+ <constructor-arg ref="props" />
+ </bean>
+ <bean id="graphImpl" class="org.onap.aai.champtitan.graph.impl.TitanChampGraphImpl">
+ <constructor-arg ref="graphBuilder" />
+ </bean>
+
+ <!-- Janus Implementation -->
+<!--
+ <bean id="graphBuilder" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl$Builder">
+ <constructor-arg value="<%= @CHAMP_GRAPH_NAME %>"/>
+ <constructor-arg ref="props"/>
+ </bean>
+ <bean id="graphImpl" class="org.onap.aai.champjanus.graph.impl.JanusChampGraphImpl">
+ <constructor-arg ref="graphBuilder"/>
+ </bean>
+-->
+
+ <bean id="champUUIDService" class="org.onap.champ.service.ChampUUIDService">
+ <constructor-arg name="graphImpl" ref="graphImpl"/>
+ </bean>
+
+ <bean id="cache" class="org.onap.champ.service.ChampTransactionCache">
+ <constructor-arg name="txTimeOutInSec" value="600"/>
+ <constructor-arg name="graphImpl" ref="graphImpl"/>
+ </bean>
+
+ <bean id="champDataService" class="org.onap.champ.service.ChampDataService">
+ <constructor-arg name="champUUIDService" ref="champUUIDService"/>
+ <constructor-arg name="graphImpl" ref="graphImpl"/>
+ <constructor-arg name="cache" ref="cache"/>
+ </bean>
+
+ <bean id="champRestService" class="org.onap.champ.ChampRESTAPI">
+ <constructor-arg name="champDataService" ref="champDataService"/>
+ <constructor-arg name="champAsyncRequestProcessor" ref="champAsyncRequestProcessor"/>
+ </bean>
+</beans>
\ No newline at end of file
export DATA_ROUTER_LOGS="/opt/aai/logroot/AAI-DATA-ROUTER";
export MODEL_LOADER_LOGS="/opt/aai/logroot/AAI-MODEL-LOADER";
export UI_LOGS="/opt/aai/logroot/AAI-UI";
+export CHAMP_LOGS="/opt/aai/logroot/AAI-CHAMP-SERVICE";
if [ ! -d "$RESOURCES_LOGS" ];
then
mkdir -p $UI_LOGS;
fi;
+if [ ! -d "$CHAMP_LOGS" ];
+then
+ echo "Warning: Unable to find the volume directory $CHAMP_LOGS so creating it as regular directory";
+ mkdir -p $CHAMP_LOGS;
+fi;
+
export MTU=$(/sbin/ifconfig | grep MTU | sed 's/.*MTU://' | sed 's/ .*//' | sort -n | head -1);
export DOCKER_REGISTRY="${DOCKER_REGISTRY:-localhost:5000}";
export AAI_HAPROXY_IMAGE="${AAI_HAPROXY_IMAGE:-aaionap/haproxy}";
docker pull ${DOCKER_REGISTRY}/onap/sparky-be:${DOCKER_IMAGE_VERSION};
docker tag $DOCKER_REGISTRY/onap/sparky-be:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/onap/sparky-be:latest;
+docker pull ${DOCKER_REGISTRY}/onap/champ-service:${DOCKER_IMAGE_VERSION};
+docker tag $DOCKER_REGISTRY/onap/champ-service:$DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/onap/champ-service:latest;
+
# cleanup
$DOCKER_COMPOSE_CMD stop
$DOCKER_COMPOSE_CMD rm -f -v
$DOCKER_COMPOSE_CMD up -d model-loader datarouter aai.searchservice.simpledemo.openecomp.org
+$DOCKER_COMPOSE_CMD up -d champ-service
+
echo "A&AI Microservices are successfully started";
crontab < /opt/test-config/aaicrontab
options:
max-size: "30m"
max-file: "5"
-
+
+ champ-service:
+ image: ${DOCKER_REGISTRY}/onap/champ-service
+ hostname: champ-service
+ volumes:
+ - ${CHAMP_LOGS}:/logs
+ - /opt/test-config/champ-service/appconfig:/opt/app/champ-service/config
+ - /opt/test-config/champ-service/dynamic:/opt/app/champ-service/dynamic
+ ports:
+ - 9522:9522
+ environment:
+ - CONFIG_HOME=/opt/app/champ-service/config/
+ - KEY_STORE_PASSWORD=OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+ - KEY_MANAGER_PASSWORD=OBF:1y0q1uvc1uum1uvg1pil1pjl1uuq1uvk1uuu1y10
+ - AJSC_JETTY_ThreadCount_MIN=5
+ - AJSC_JETTY_ThreadCount_MAX=200
+ - AJSC_JETTY_BLOCKING_QUEUE_SIZE=200
+ - MAX_HEAP=1024
+ - SERVICE_BEANS=/opt/app/champ-service/dynamic/conf
+ - GRAPHIMPL=titan-deps
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
+
networks:
default:
driver: bridge