export UI_LOGS="/opt/aai/logroot/AAI-UI";
export CHAMP_LOGS="/opt/aai/logroot/AAI-CHAMP-SERVICE";
export CRUD_LOGS="/opt/aai/logroot/AAI-CRUD-SERVICE";
+export SPIKE_LOGS="/opt/aai/logroot/AAI-SPIKE-SERVICE";
export BABEL_LOGS="/opt/aai/logroot/AAI-BAS";
if [ ! -d "$RESOURCES_LOGS" ];
mkdir -p $CRUD_LOGS;
fi;
+if [ ! -d "$SPIKE_LOGS" ];
+then
+ echo "Warning: Unable to find the volume directory $SPIKE_LOGS so creating it as regular directory";
+ mkdir -p $SPIKE_LOGS;
+fi;
+
if [ ! -d "$BABEL_LOGS" ];
then
echo "Warning: Unable to find the volume directory $BABEL_LOGS so creating it as regular directory";
SPARKY_BE_DOCKER_IMAGE_VERSION=1.2.1
CHAMP_DOCKER_IMAGE_VERSION=1.2.3
GIZMO_DOCKER_IMAGE_VERSION=1.2.0
+SPIKE_DOCKER_IMAGE_VERSION=1.2.0
BABEL_DOCKER_IMAGE_VERSION=1.2.0
docker login -u $NEXUS_USERNAME -p $NEXUS_PASSWD $NEXUS_DOCKER_REPO
docker pull ${DOCKER_REGISTRY}/onap/gizmo:${GIZMO_DOCKER_IMAGE_VERSION};
docker tag $DOCKER_REGISTRY/onap/gizmo:$GIZMO_DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/onap/gizmo:latest;
+docker pull ${DOCKER_REGISTRY}/onap/spike:${SPIKE_DOCKER_IMAGE_VERSION};
+docker tag $DOCKER_REGISTRY/onap/spike:$SPIKE_DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/onap/spike:latest;
+
docker pull ${DOCKER_REGISTRY}/onap/babel:${BABEL_DOCKER_IMAGE_VERSION};
docker tag $DOCKER_REGISTRY/onap/babel:$BABEL_DOCKER_IMAGE_VERSION $DOCKER_REGISTRY/onap/babel:latest;
$DOCKER_COMPOSE_CMD up -d crud-service
+$DOCKER_COMPOSE_CMD up -d spike-service
+
$DOCKER_COMPOSE_CMD up -d babel
echo "A&AI Microservices are successfully started";
options:
max-size: "30m"
max-file: "5"
+
+ spike-service:
+ image: ${DOCKER_REGISTRY}/onap/spike
+ hostname: spike-service
+ volumes:
+ - ${SPIKE_LOGS}:/logs
+ - /opt/test-config/spike-service/appconfig:/opt/app/spike-service/config
+ - /opt/test-config/spike-service/dynamic:/opt/app/spike-service/dynamic
+ ports:
+ - 9518:9518
+ environment:
+ - CONFIG_HOME=/opt/app/spike-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/spike-service/dynamic/conf
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "30m"
+ max-file: "5"
babel:
image: ${DOCKER_REGISTRY}/onap/babel
--- /dev/null
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
--- /dev/null
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+}
\ No newline at end of file
--- /dev/null
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+}
\ No newline at end of file
--- /dev/null
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+}
\ No newline at end of file
--- /dev/null
+{
+ "contains-other-v": "java.lang.String",
+ "delete-other-v": "java.lang.String",
+ "SVC-INFRA": "java.lang.String",
+ "prevent-delete": "java.lang.String"
+}
\ No newline at end of file
--- /dev/null
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
--- /dev/null
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
--- /dev/null
+{
+ "isParent":"java.lang.Boolean",
+ "isParent-REV":"java.lang.Boolean",
+ "usesResource":"java.lang.Boolean",
+ "usesResource-REV":"java.lang.Boolean",
+ "SVC-INFRA":"java.lang.Boolean",
+ "SVC-INFRA-REV":"java.lang.Boolean",
+ "hasDelTarget":"java.lang.Boolean",
+ "hasDelTarget-REV":"java.lang.Boolean"
+}
--- /dev/null
+# Spike configuration\r
+\r
+spike.event.poll.interval=30000\r
+spike.event.offset.period= 10000\r
+spike.event.queue.capacity=10000\r
+spike.event.queue.delay=10000\r
+spike.props.reserved=source-of-truth,last-mod-source-of-truth,aai-created-ts,aai-last-mod-ts
\ No newline at end of file
--- /dev/null
+<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"\r
+ xmlns:util="http://www.springframework.org/schema/util"\r
+ xsi:schemaLocation="\r
+ http://www.springframework.org/schema/beans\r
+ http://www.springframework.org/schema/beans/spring-beans.xsd\r
+ http://www.springframework.org/schema/util\r
+ http://www.springframework.org/schema/util/spring-util.xsd\r
+ ">\r
+\r
+ <!-- \r
+ <bean id="eventConsumer" class="com.att.ecomp.event.client.KafkaEventConsumer" > \r
+ <constructor-arg name="topic" value="mytopic" /> \r
+ <constructor-arg name="groupId" value="mygroupId" /> \r
+ <constructor-arg name="hosts" ref="hosts" /> \r
+ </bean> \r
+ -->\r
+\r
+ <bean id="eventPublisher" class="org.onap.aai.event.client.DMaaPEventPublisher">\r
+ <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904" />\r
+ <constructor-arg name="topic" value="SpikeRawEventsOnap" />\r
+ <constructor-arg name="username" value="test" />\r
+ <constructor-arg name="password" value="test" />\r
+ <constructor-arg name="maxBatchSize" value="100" />\r
+ <constructor-arg name="maxAgeMs" value="250" />\r
+ <constructor-arg name="delayBetweenBatchesMs" value="50" />\r
+ <constructor-arg name="transportType" value="HTTPAUTH" />\r
+ </bean>\r
+\r
+ <bean id="eventConsumer" class="org.onap.aai.event.client.DMaaPEventConsumer">\r
+ <constructor-arg name="host" value="mr.api.simpledemo.openecomp.org:3904" />\r
+ <constructor-arg name="topic" value="champRawEventsOnap" />\r
+ <constructor-arg name="username" value="test" />\r
+ <constructor-arg name="password" value="test" />\r
+ <constructor-arg name="consumerGroup" value="spike-onap" />\r
+ <constructor-arg name="consumerId" value="spike-onap" />\r
+ <constructor-arg name="timeoutMs" value="1000" />\r
+ <constructor-arg name="messageLimit" value="100" />\r
+ <constructor-arg name="transportType" value="HTTPAUTH" />\r
+ <constructor-arg name="protocol" value="http" />\r
+ <constructor-arg name="filter">\r
+ <null />\r
+ </constructor-arg>\r
+ </bean>\r
+\r
+ <bean id="spikeService" class="org.onap.aai.spike.service.SpikeService" init-method="startup">\r
+ <constructor-arg ref="eventConsumer" />\r
+ <constructor-arg ref="eventPublisher" />\r
+ </bean>\r
+</beans>
\ No newline at end of file