summaryrefslogtreecommitdiffstats
path: root/src/main/docker
diff options
context:
space:
mode:
authorReshmasree <reshmasree.chamarthi2@wipro.com>2019-03-21 18:54:53 +0530
committerReshmasree <reshmasree.chamarthi2@wipro.com>2019-03-27 20:22:53 +0530
commitab400d51a639a01f31a60ac9d1e127d4d4d28b24 (patch)
treefd7ee3eb66c976bba4e4027e993eeb95666b98e8 /src/main/docker
parent3cd4023832810e8b65f85a9db807c8bafec38d82 (diff)
Add component spec and blueprint
- validated component spec and blueprints are added to the repo - pom file changed to build,tag and push the docker image - checkstyle version changed from 1.2.3-SNAPSHOT to 1.2.3 - entrypoint script added Change-Id: I0fcf8a17b0c5ce1990de506bf94d2d9ddf93d6fd Issue-ID: DCAEGEN2-1159 Signed-off-by: Reshmasree <reshmasree.chamarthi2@wipro.com>
Diffstat (limited to 'src/main/docker')
-rw-r--r--src/main/docker/postgres_scripts/Dockerfile7
-rw-r--r--src/main/docker/postgres_scripts/createdb.sql25
-rw-r--r--src/main/docker/postgres_scripts/init_db.sh23
-rw-r--r--src/main/docker/son-handler/Dockerfile17
-rw-r--r--src/main/docker/son-handler/config.json48
-rw-r--r--src/main/docker/son-handler/entrypoint.sh35
-rw-r--r--src/main/docker/son-handler/policy.crt27
7 files changed, 0 insertions, 182 deletions
diff --git a/src/main/docker/postgres_scripts/Dockerfile b/src/main/docker/postgres_scripts/Dockerfile
deleted file mode 100644
index 9ccb016..0000000
--- a/src/main/docker/postgres_scripts/Dockerfile
+++ /dev/null
@@ -1,7 +0,0 @@
-from busybox
-
-RUN mkdir /docker-entrypoint-initdb.d
-
-ADD createdb.sql /tmp
-
-
diff --git a/src/main/docker/postgres_scripts/createdb.sql b/src/main/docker/postgres_scripts/createdb.sql
deleted file mode 100644
index dc843e7..0000000
--- a/src/main/docker/postgres_scripts/createdb.sql
+++ /dev/null
@@ -1,25 +0,0 @@
-CREATE DATABASE sonh_ms;
-\c sonh_ms
-CREATE TABLE DMAAP_NOTIFICATIONS(
- notification TEXT PRIMARY KEY NOT NULL,
- created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
-);
-CREATE TABLE BUFFERED_NOTIFICATIONS(
- notification TEXT PRIMARY KEY NOT NULL,
- cluster_id TEXT NOT NULL,
- created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
-);
-CREATE TABLE CLUSTER_DETAILS(
- cluster_id TEXT PRIMARY KEY NOT NULL,
- cluster_info TEXT NOT NULL,
- child_thread_id BIGINT UNIQUE NOT NULL
-);
-CREATE TABLE CELL_INFO(
- cell_id TEXT PRIMARY KEY NOT NULL,
- pnf_name TEXT NOT NULL
-);
-CREATE TABLE PCI_REQUESTS(
- transaction_id TEXT PRIMARY KEY,
- child_thread_id BIGINT UNIQUE NOT NULL
-);
-
diff --git a/src/main/docker/postgres_scripts/init_db.sh b/src/main/docker/postgres_scripts/init_db.sh
deleted file mode 100644
index f01eea6..0000000
--- a/src/main/docker/postgres_scripts/init_db.sh
+++ /dev/null
@@ -1,23 +0,0 @@
-#!/bin/bash
-#*******************************************************************************
-# ============LICENSE_START=======================================================
-# son-handler
-# ================================================================================
-# Copyright (C) 2019 Wipro Limited.
-# ==============================================================================
-# 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
-# limitations under the License.
-# ============LICENSE_END=========================================================
-#
-#*******************************************************************************
-
-psql -U postgres -tc "SELECT 1 FROM pg_database WHERE datname = 'pci_ms'" | grep -q 1 || psql -U postgres -c "CREATE DATABASE pci_ms"
diff --git a/src/main/docker/son-handler/Dockerfile b/src/main/docker/son-handler/Dockerfile
deleted file mode 100644
index 6e50fb1..0000000
--- a/src/main/docker/son-handler/Dockerfile
+++ /dev/null
@@ -1,17 +0,0 @@
-FROM java:openjdk-8
-
-ADD config.json /etc/config.json
-
-ADD policy.crt /policy.crt
-
-RUN keytool -import -file /policy.crt -alias policycert -keystore /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/security/cacerts -storepass changeit -noprompt
-
-COPY pci-handler-1.0-SNAPSHOT.jar application.jar
-
-ADD entrypoint.sh .
-
-RUN chmod +x entrypoint.sh
-
-EXPOSE 8080
-
-ENTRYPOINT ["./entrypoint.sh"]
diff --git a/src/main/docker/son-handler/config.json b/src/main/docker/son-handler/config.json
deleted file mode 100644
index 6cdf863..0000000
--- a/src/main/docker/son-handler/config.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "topics":[
- {
- "name": "PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO",
- "producer": "SDNR_API_KEY",
- "consumer": "PCIMS_API_KEY"
- },
- {
- "name": "DCAE_CL_OUTPUT",
- "producer": "PCIMS_API_KEY",
- "consumer": "POLICY_API_KEY"
- },
- {
- "name": "SDNR-CL",
- "producer": "POLICY_API_KEY",
- "consumer": "SDNR_API_KEY"
- },
- {
- "name": "SDNR-CL-RSP",
- "producer": "SDNR_API_KEY",
- "consumer": "POLICY_API_KEY"
- }
- ],
- "sdnrTopic": "PCI-NOTIF-TOPIC-NGHBR-LIST-CHANGE-INFO",
- "policyTopic": "DCAE_CL_OUTPUT",
- "servers": ["DMAAP_SERVER:3904"],
- "managerApiKey": "MANAGER_API_KEY",
- "managerSecretKey": "MANAGER_SECRET_KEY",
- "pcimsApiKey": "PCIMS_API_KEY",
- "pcimsSecretKey": "PCIMS_SECRET_KEY",
- "cg": "pcims-cg",
- "cid": "pcims-cid",
- "pollingTimeout": "60",
- "pollingInterval": "20",
- "minCollision": "5",
- "minConfusion": "5",
- "sdnrService": "http://SDNR_SERVICE",
- "oofService": "http://OOF_SERVICE",
- "policyService": "https://POLICY_SERVICE",
- "sourceId": "PCIHMS",
- "callbackUrl": "http://pcims.onap:8080/callbackUrl",
- "policyName": "com.Config_PCIMS_CONFIG_POLICY.1.xml",
- "configName": "PCIMS_CONFIG_POLICY",
- "optimizers": ["pci"],
- "bufferTime": "60000",
- "numSolutions": "1",
- "maximumClusters": "5"
-}
diff --git a/src/main/docker/son-handler/entrypoint.sh b/src/main/docker/son-handler/entrypoint.sh
deleted file mode 100644
index 36e3178..0000000
--- a/src/main/docker/son-handler/entrypoint.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/bin/bash
-#*******************************************************************************
-# ============LICENSE_START=======================================================
-# son-handler
-# ================================================================================
-# Copyright (C) 2019 Wipro Limited.
-# ==============================================================================
-# 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
-# limitations under the License.
-# ============LICENSE_END=========================================================
-#
-#*******************************************************************************
-
-sed -i s/DMAAP_SERVER/$DMAAPSERVER/ /etc/config.json
-sed -i s/SDNR_SERVICE/$SDNRSERVICE/ /etc/config.json
-sed -i s/OOF_SERVICE/$OOFSERVICE/ /etc/config.json
-sed -i s/POLICY_SERVICE/$POLICYSERVICE/ /etc/config.json
-sed -i s/PCIMS_SERVICE_HOST/$PCIMS_SERVICE_HOST/ /etc/config.json
-sed -i s/MANAGER_API_KEY/$MANAGERAPIKEY/ /etc/config.json
-sed -i s/MANAGER_SECRET_KEY/$MANAGERSECRETKEY/ /etc/config.json
-sed -i s/PCIMS_API_KEY/$PCIMSAPIKEY/ /etc/config.json
-sed -i s/PCIMS_SECRET_KEY/$PCIMSSECRETKEY/ /etc/config.json
-sed -i s/SDNR_API_KEY/$SDNRAPIKEY/ /etc/config.json
-sed -i s/POLICY_API_KEY/$POLICYAPIKEY/ /etc/config.json
-java -jar application.jar
-
diff --git a/src/main/docker/son-handler/policy.crt b/src/main/docker/son-handler/policy.crt
deleted file mode 100644
index e017bf4..0000000
--- a/src/main/docker/son-handler/policy.crt
+++ /dev/null
@@ -1,27 +0,0 @@
------BEGIN CERTIFICATE-----
-MIIEkzCCA3ugAwIBAgIIaG5i2/yYcycwDQYJKoZIhvcNAQELBQAwRzELMAkGA1UE
-BhMCVVMxDTALBgNVBAoMBE9OQVAxDjAMBgNVBAsMBU9TQUFGMRkwFwYDVQQDDBBp
-bnRlcm1lZGlhdGVDQV85MB4XDTE4MTAxMTIyMDkwNVoXDTE5MDQxMTIyMDkwNVow
-bzEPMA0GA1UEAwwGcG9saWN5MQ8wDQYJKoZIhvcNAQkBFgAxHzAdBgNVBAsMFnBv
-bGljeUBwb2xpY3kub25hcC5vcmcxDjAMBgNVBAsMBU9TQUFGMQ0wCwYDVQQKDARP
-TkFQMQswCQYDVQQGEwJVUzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
-ALdwMkNAqr43X9eBdGV9xT+Gi2usZC8GdOvAuEJ0srqdLY1baSMrGDY6sN4o5o/X
-fD+wwoaTYtnrrESC13BEoXRo7vIuqxKnNjqkljHcgk09m8BaBB5zQQQULoeEEVIV
-7c9+agrE+Jg3BPsilyWnJco6zLPpjSuTlqEvCtUjk6aQ+dS8ItHN26c/W42AuyLn
-iofaWY2HZdhOZJg6UetyITOywQ5o3vl09tE+zPzk7cixsxVUJy2aunUuDcrFiyKf
-tSX3XBAxaspgVtnNrUheudwkWc5pdBFNYSJS8NSCc7yDuAz0AfrCS7Tcd4IZG7Lw
-zJjMoIj0fOsinFViPkiyAA8CAwEAAaOCAVkwggFVMAkGA1UdEwQCMAAwDgYDVR0P
-AQH/BAQDAgXgMCAGA1UdJQEB/wQWMBQGCCsGAQUFBwMBBggrBgEFBQcDAjBUBgNV
-HSMETTBLgBSB95lbELnIjN7zUl7qTmmgQz6s3aEwpC4wLDEOMAwGA1UECwwFT1NB
-QUYxDTALBgNVBAoMBE9OQVAxCzAJ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