summaryrefslogtreecommitdiffstats
path: root/kubernetes/config/docker/init/make-tar.sh
diff options
context:
space:
mode:
authorMandeep Khinda <Mandeep.Khinda@amdocs.com>2017-06-24 11:49:37 -0400
committerMandeep Khinda <Mandeep.Khinda@amdocs.com>2017-06-24 11:49:37 -0400
commitd6ea987caed84a9f36030a5a1516df7c6186362d (patch)
tree265dda9cfb43a78542e4b2ccac382a8a5583bc56 /kubernetes/config/docker/init/make-tar.sh
parent43d96ac929c93d0aa2a55d860e0425a39118f7b4 (diff)
onap on kubernetes source files
Change-Id: I4de34baf90979651223a28323010deb7aef21946 Signed-off-by: Mandeep Khinda <Mandeep.Khinda@amdocs.com>
Diffstat (limited to 'kubernetes/config/docker/init/make-tar.sh')
-rwxr-xr-xkubernetes/config/docker/init/make-tar.sh18
1 files changed, 18 insertions, 0 deletions
diff --git a/kubernetes/config/docker/init/make-tar.sh b/kubernetes/config/docker/init/make-tar.sh
new file mode 100755
index 0000000000..7ec08ceee0
--- /dev/null
+++ b/kubernetes/config/docker/init/make-tar.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+cd src/config
+
+TAR=/usr/local/opt/gnu-tar/libexec/gnubin/tar
+OS="`uname`"
+case $OS in
+ 'Linux')
+ OS='Linux'
+ TAR=/usr/bin/tar
+ ;;
+ 'Darwin')
+ OS='Mac'
+ ;;
+ *) ;;
+esac
+
+$TAR -cvzf ../../onap-cfg.tar.gz *