From 6db2a303546afa13d356f93eb26e76034a7208ef Mon Sep 17 00:00:00 2001 From: Harry Huang Date: Sat, 24 Feb 2018 15:38:47 +0800 Subject: 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 --- compass-tasks-k8s/Dockerfile | 6 ++++++ compass-tasks-k8s/run.sh | 13 +++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 compass-tasks-k8s/Dockerfile create mode 100644 compass-tasks-k8s/run.sh (limited to 'compass-tasks-k8s') 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 -- cgit 1.2.3-korg