aboutsummaryrefslogtreecommitdiffstats
path: root/services/activity-spec/activity-spec-init
diff options
context:
space:
mode:
authoravigaffa <avi.gaffa@amdocs.com>2018-08-15 08:37:02 +0300
committeravigaffa <avi.gaffa@amdocs.com>2018-08-15 08:37:07 +0300
commit229dbd17cb098d06a50f11f5f77a8ee364376388 (patch)
tree4db0eaf24260f5d75615af00cd12c39ec20ac5cb /services/activity-spec/activity-spec-init
parentdc856bba284798fa8f1484abf8fc8140008ececb (diff)
Remove activity spec from sdc
Remove activity spec module from sdc since it is now part of sdc-workflow-designer project Change-Id: I730e60708bf6bae757be46113601c7ce4fc92a92 Issue-ID: SDC-1651 Signed-off-by: avigaffa <avi.gaffa@amdocs.com>
Diffstat (limited to 'services/activity-spec/activity-spec-init')
-rw-r--r--services/activity-spec/activity-spec-init/.maven-dockerignore1
-rw-r--r--services/activity-spec/activity-spec-init/Dockerfile10
-rw-r--r--services/activity-spec/activity-spec-init/create_activityspec_db.cql13
-rw-r--r--services/activity-spec/activity-spec-init/pom.xml47
-rw-r--r--services/activity-spec/activity-spec-init/start.sh18
5 files changed, 0 insertions, 89 deletions
diff --git a/services/activity-spec/activity-spec-init/.maven-dockerignore b/services/activity-spec/activity-spec-init/.maven-dockerignore
deleted file mode 100644
index 9f970225ad..0000000000
--- a/services/activity-spec/activity-spec-init/.maven-dockerignore
+++ /dev/null
@@ -1 +0,0 @@
-target/ \ No newline at end of file
diff --git a/services/activity-spec/activity-spec-init/Dockerfile b/services/activity-spec/activity-spec-init/Dockerfile
deleted file mode 100644
index a940b20c5f..0000000000
--- a/services/activity-spec/activity-spec-init/Dockerfile
+++ /dev/null
@@ -1,10 +0,0 @@
-FROM alpine:3.7
-
-RUN apk add --no-cache 'python<3' py-pip && pip install cqlsh==4.0.1
-
-COPY create_activityspec_db.cql .
-COPY start.sh .
-
-RUN chmod 744 start.sh
-
-ENTRYPOINT ["./start.sh"] \ No newline at end of file
diff --git a/services/activity-spec/activity-spec-init/create_activityspec_db.cql b/services/activity-spec/activity-spec-init/create_activityspec_db.cql
deleted file mode 100644
index 2216c33867..0000000000
--- a/services/activity-spec/activity-spec-init/create_activityspec_db.cql
+++ /dev/null
@@ -1,13 +0,0 @@
-CREATE KEYSPACE IF NOT EXISTS activity_spec WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 1 };
-USE activity_spec;
-CREATE TABLE IF NOT EXISTS unique_value (type text, value text, PRIMARY KEY ((type, value)));
-CREATE KEYSPACE IF NOT EXISTS zusammen_activity_spec WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 };
-USE zusammen_activity_spec;
-CREATE TABLE IF NOT EXISTS item (item_id text primary key, item_info text, creation_time timestamp, modification_time timestamp);
-CREATE TABLE IF NOT EXISTS version (space text, item_id text, version_id text,base_version_id text,info text,relations text,creation_time timestamp,modification_time timestamp ,PRIMARY KEY (( space, item_id ), version_id));
-CREATE TABLE IF NOT EXISTS version_elements (space text,item_id text,version_id text,revision_id text,element_ids Map<text,text>, dirty_element_ids set<text>,stage_element_ids set<text>, conflict_element_ids set<text>, publish_time timestamp,user text,message text, PRIMARY KEY (( space, item_id, version_id ),revision_id));
-CREATE TABLE IF NOT EXISTS element_namespace (item_id text, element_id text, namespace text, PRIMARY KEY ((item_id, element_id)));
-CREATE TABLE IF NOT EXISTS element (space text,item_id text,version_id text,element_id text,revision_id text,parent_id text,namespace text,info text,relations text,data blob,searchable_data blob,visualization blob,sub_element_ids set<text> ,element_hash text,PRIMARY KEY (( space, item_id, version_id, element_id ),revision_id));
-CREATE TABLE IF NOT EXISTS element_synchronization_state (space text, item_id text, version_id text, element_id text,revision_id text, publish_time timestamp, dirty boolean, PRIMARY KEY (( space, item_id, version_id ), element_id,revision_id));
-CREATE TABLE IF NOT EXISTS element_stage (space text, item_id text,version_id text, element_id text, parent_id text, namespace text, info text, relations text,data blob, searchable_data blob, visualization blob, sub_element_ids set<text>,element_hash text, publish_time timestamp, action text, conflicted boolean,conflict_dependent_ids set<text>, PRIMARY KEY (( space, item_id, version_id, element_id )));
-CREATE TABLE IF NOT EXISTS version_stage (space text, item_id text, version_id text, base_version_id text, creation_time timestamp,modification_time timestamp, publish_time timestamp, action text, PRIMARY KEY (( space, item_id ), version_id)); \ No newline at end of file
diff --git a/services/activity-spec/activity-spec-init/pom.xml b/services/activity-spec/activity-spec-init/pom.xml
deleted file mode 100644
index a7ea88e4ff..0000000000
--- a/services/activity-spec/activity-spec-init/pom.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns="http://maven.apache.org/POM/4.0.0"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <modelVersion>4.0.0</modelVersion>
-
- <artifactId>activity-spec-init</artifactId>
- <packaging>pom</packaging>
-
- <parent>
- <groupId>org.onap.sdc.activityspec</groupId>
- <artifactId>activity-spec</artifactId>
- <version>1.3.0-SNAPSHOT</version>
- </parent>
-
- <profiles>
- <profile>
- <id>docker</id>
- <activation>
- <activeByDefault>false</activeByDefault>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>io.fabric8</groupId>
- <artifactId>docker-maven-plugin</artifactId>
- <configuration>
- <images>
- <image>
- <name>onap/activity-spec-init</name>
- <build>
- <tags>
- <tag>${project.version}</tag>
- </tags>
- <dockerFileDir>${project.basedir}</dockerFileDir>
- <dockerFile>Dockerfile</dockerFile>
- </build>
- </image>
- </images>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
-
-</project> \ No newline at end of file
diff --git a/services/activity-spec/activity-spec-init/start.sh b/services/activity-spec/activity-spec-init/start.sh
deleted file mode 100644
index 582f0bde0a..0000000000
--- a/services/activity-spec/activity-spec-init/start.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/bin/sh
-
-if [[ -z "${CS_USER}" ]]; then
- echo "CS_USER environment variable must be set"
- exit 1
-fi
-
-if [[ -z "${CS_PASSWORD}" ]]; then
- echo "CS_PASSWORD environment variable must be set"
- exit 1
-fi
-
-if [[ -z "${CS_HOST}" ]]; then
- echo "CS_HOST environment variable must be set"
- exit 1
-fi
-
-cqlsh -u $CS_USER -p $CS_PASSWORD -f /create_activityspec_db.cql $CS_HOST $CS_PORT