aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/docker
diff options
context:
space:
mode:
authorramya <ramya.ravichandran5@wipro.com>2019-03-11 17:34:41 +0530
committerramya <ramya.ravichandran5@wipro.com>2019-03-11 17:37:12 +0530
commit3cd4023832810e8b65f85a9db807c8bafec38d82 (patch)
tree13175e409ca3b29eccffacd75538ded25cfdb518 /src/main/docker
parent79f9e63b3e531ae7ca4eaa7224ab8a740ad578cb (diff)
code coverage for M3
Change-Id: Ib421ce2ac9357a3210d99293497f9e304f8cd2f5 Issue-ID: DCAEGEN2-1259 Signed-off-by: Ramya Ravichandran<ramya.ravichandran5@wipro.com>
Diffstat (limited to 'src/main/docker')
-rw-r--r--src/main/docker/postgres_scripts/init_db.sh20
-rw-r--r--src/main/docker/son-handler/entrypoint.sh20
2 files changed, 40 insertions, 0 deletions
diff --git a/src/main/docker/postgres_scripts/init_db.sh b/src/main/docker/postgres_scripts/init_db.sh
index cbc27a6..f01eea6 100644
--- a/src/main/docker/postgres_scripts/init_db.sh
+++ b/src/main/docker/postgres_scripts/init_db.sh
@@ -1,3 +1,23 @@
#!/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/entrypoint.sh b/src/main/docker/son-handler/entrypoint.sh
index bf69065..36e3178 100644
--- a/src/main/docker/son-handler/entrypoint.sh
+++ b/src/main/docker/son-handler/entrypoint.sh
@@ -1,4 +1,24 @@
#!/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