summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarry Huang <huangxiangyu5@huawei.com>2017-11-03 10:43:09 +0800
committerHarry Huang <huangxiangyu5@huawei.com>2017-11-03 10:43:09 +0800
commitfce3a0b2765f1e521b7f8d31772f443849c2bb12 (patch)
tree316c1169ad0208820db65f3f1bd9619f6c9f70b0
parent3656ab7b5e3f2f26f7c98f9dcc97b3c461fa2a76 (diff)
Add compass-tasks-k8s
compass-tasks adapted for kubespray Change-Id: Ia0eb6d27fa9f02ede47ca26d6b22cd848f67bfd5 Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
-rw-r--r--compass-tasks-k8s/Dockerfile6
-rw-r--r--compass-tasks-k8s/README.md1
-rw-r--r--compass-tasks-k8s/run.sh25
3 files changed, 32 insertions, 0 deletions
diff --git a/compass-tasks-k8s/Dockerfile b/compass-tasks-k8s/Dockerfile
new file mode 100644
index 0000000..1203ffa
--- /dev/null
+++ b/compass-tasks-k8s/Dockerfile
@@ -0,0 +1,6 @@
+FROM huangxiangyu/compass-tasks:v0.3
+#FROM localbuild/compass-tasks
+
+ADD ./run.sh /root/
+RUN chmod +x /root/run.sh
+RUN /root/run.sh
diff --git a/compass-tasks-k8s/README.md b/compass-tasks-k8s/README.md
new file mode 100644
index 0000000..2dab2ee
--- /dev/null
+++ b/compass-tasks-k8s/README.md
@@ -0,0 +1 @@
+# compass-tasks-k8s
diff --git a/compass-tasks-k8s/run.sh b/compass-tasks-k8s/run.sh
new file mode 100644
index 0000000..516ead0
--- /dev/null
+++ b/compass-tasks-k8s/run.sh
@@ -0,0 +1,25 @@
+#!/bin/bash
+##############################################################################
+# Copyright (c) 2016-2017 HUAWEI TECHNOLOGIES CO.,LTD and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+set -x
+COMPASS_DIR=${BASH_SOURCE[0]%/*}
+
+rm -rf /opt/kargo_k8s
+git clone https://github.com/kubernetes-incubator/kubespray.git /opt/kargo_k8s
+
+cd /opt/kargo_k8s
+git checkout v2.2.0
+
+pip uninstall ansible -y
+
+pip install ansible==2.3.1.0
+
+
+
+