diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2018-02-24 15:38:47 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2018-02-24 15:54:39 +0800 |
commit | 6db2a303546afa13d356f93eb26e76034a7208ef (patch) | |
tree | 88a707d7981d2dfed52fa128cd9031d87f26b912 /compass-tasks-k8s | |
parent | 9dad460375c3daeedd228e88915e402bcd8ab436 (diff) |
Seprate compass-tasks
JIRA: -
Keep three compass-tasks:
compass-tasks - merge both OSA and kubespray
compass-tasks-osa - only OSA
compass-tasks-k8s - only kubespray
Change-Id: Ia790da1b5080322c5e2efe0980aabe9a76867c10
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'compass-tasks-k8s')
-rw-r--r-- | compass-tasks-k8s/Dockerfile | 6 | ||||
-rw-r--r-- | compass-tasks-k8s/run.sh | 13 |
2 files changed, 19 insertions, 0 deletions
diff --git a/compass-tasks-k8s/Dockerfile b/compass-tasks-k8s/Dockerfile new file mode 100644 index 0000000..70da42e --- /dev/null +++ b/compass-tasks-k8s/Dockerfile @@ -0,0 +1,6 @@ +FROM opnfv/compass-tasks-base +ARG BRANCH=master + +ADD ./run.sh /root/ +RUN chmod +x /root/run.sh +RUN /root/run.sh diff --git a/compass-tasks-k8s/run.sh b/compass-tasks-k8s/run.sh new file mode 100644 index 0000000..3a7c0c8 --- /dev/null +++ b/compass-tasks-k8s/run.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +yum install git ntp wget ntpdate openssh-server python-devel sudo '@Development Tools' -y +#yum install -y python-yaml +systemctl stop firewalld +systemctl mask firewalld + +# get kubespray code and install requirement +rm -rf /opt/kargo_k8s +git clone https://github.com/kubernetes-incubator/kubespray.git /opt/kargo_k8s +cd /opt/kargo_k8s +git checkout f4180503c891bea4b4b77a2f7cc93923411a7449 -b k8s1.9.1 +pip install ansible==2.4.2.0 |