summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/scripts/k8s
diff options
context:
space:
mode:
authorAvi Ziv <avi.ziv@amdocs.com>2018-03-15 13:21:44 +0200
committerMichael Lando <ml636r@att.com>2018-04-24 07:50:44 +0000
commitc175a0de2f05d37c1c774684318a525eb96bb59b (patch)
tree0c8bd736fdbcb512fefce93ec841fd3537336206 /sdc-os-chef/scripts/k8s
parent08d85958f46d1de9aec9cf459632b5be040063be (diff)
Create on boarding docker
Add BE and Cassandra init docker images Change-Id: Id9d767c73fc946819cec821b4634ce650cbb22fd Issue-ID: SDC-781 Signed-off-by: Michael Lando <ml636r@att.com>
Diffstat (limited to 'sdc-os-chef/scripts/k8s')
-rwxr-xr-xsdc-os-chef/scripts/k8s/bin_nsenterbin0 -> 90162 bytes
-rw-r--r--sdc-os-chef/scripts/k8s/etc_nsenter (renamed from sdc-os-chef/scripts/k8s/etc/bash_completion.d/nsenter)0
-rw-r--r--sdc-os-chef/scripts/k8s/kubernetes_run.sh23
3 files changed, 21 insertions, 2 deletions
diff --git a/sdc-os-chef/scripts/k8s/bin_nsenter b/sdc-os-chef/scripts/k8s/bin_nsenter
new file mode 100755
index 0000000000..9137f71456
--- /dev/null
+++ b/sdc-os-chef/scripts/k8s/bin_nsenter
Binary files differ
diff --git a/sdc-os-chef/scripts/k8s/etc/bash_completion.d/nsenter b/sdc-os-chef/scripts/k8s/etc_nsenter
index ad56f06e48..ad56f06e48 100644
--- a/sdc-os-chef/scripts/k8s/etc/bash_completion.d/nsenter
+++ b/sdc-os-chef/scripts/k8s/etc_nsenter
diff --git a/sdc-os-chef/scripts/k8s/kubernetes_run.sh b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
index fd9de2e181..7a73c2af3b 100644
--- a/sdc-os-chef/scripts/k8s/kubernetes_run.sh
+++ b/sdc-os-chef/scripts/k8s/kubernetes_run.sh
@@ -52,8 +52,18 @@ status $?
print_header "Dependency - Install ..."
echo "[INFO] Install - nsenter"
# Use pre compiled nsenter:
-sudo cp bin/nsenter /usr/local/bin/nsenter
-sudo cp etc/bash_completion.d/nsenter /etc/bash_completion.d/nsenter
+if [ -f bin_nsenter ]; then
+ sudo cp bin_nsenter /usr/local/bin/nsenter
+else
+ echo "[ERROR] File [bin_nsenter] is missing"
+fi
+
+if [ -f etc_nsenter ]; then
+ sudo cp etc_nsenter /etc/bash_completion.d/nsenter
+else
+ echo "[ERROR] File [etc_nsenter] is missing"
+fi
+
## In order to build the nsenter use the below instructions:
##./build_nsenter_exec.sh
@@ -75,3 +85,12 @@ print_header "SDC - Deploy Pods ..."
sh ./deploy_k8s_sdc.sh
status $?
+
+####################
+# SDC LOGS Tree #
+####################
+print_header "SDC - Deploy Pods ..."
+mkdir -p /dockerdata-nfs/onap/sdc/logs//BE/SDC/SDC-BE
+mkdir -p /dockerdata-nfs/onap/sdc/logs/FE/SDC/SDC-FE
+mkdir -p /dockerdata-nfs/onap/sdc/logs/ONBOARD/SDC/ONBOARD-BE
+chmod -R 777 /dockerdata-nfs/onap/sdc/logs/*