Added in XCAT-Kubernetes container files
Made a container that can be run as a daemon and ssh'ed into.
It is intended to be used to act as an XCAT management node for the
qemu instances.
Change-Id: I9e3b27ecbdb60e252b8318d3334f12b2acd04355
Signed-off-by: Alanny Lopez <alanny.lopez@ibm.com>
diff --git a/kubernetes/XCAT-Kubernetes-Container/setup_xcat.sh b/kubernetes/XCAT-Kubernetes-Container/setup_xcat.sh
new file mode 100755
index 0000000..fb27e86
--- /dev/null
+++ b/kubernetes/XCAT-Kubernetes-Container/setup_xcat.sh
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+mkdir /root/xcat2
+cd /root/xcat2
+wget https://downloads.sourceforge.net/project/xcat/xcat-dep/2.x_Ubuntu/xcat-dep-ubuntu-snap20150611.tar.bz
+wget https://github.com/xcat2/xcat-core/releases/download/2.10_release/xcat-core-2.10-ubuntu.tar.bz2
+ls
+tar jxvf xcat-dep-ubuntu-snap20150611.tar.bz
+tar jxvf xcat-core-2.10-ubuntu.tar.bz2
+./xcat-dep/mklocalrepo.sh
+./xcat-core/mklocalrepo.sh
+apt-get update && apt-get install -y --force-yes xcat
+rm /root/xcat2/*.tar*
+apt-get autoremove