diff options
author | Harry Huang <huangxiangyu5@huawei.com> | 2017-11-17 14:53:44 +0800 |
---|---|---|
committer | Harry Huang <huangxiangyu5@huawei.com> | 2017-12-21 16:36:30 +0800 |
commit | 8646b8d62cf4ca7b6bccae537a0c9e72ba45eab3 (patch) | |
tree | 73a9a983e0dd1423e9df928a78a5023a09d5a7f9 /compass-tasks/build.sh | |
parent | 6234176ae292a75dcda5520324cb7857d6105988 (diff) |
Merge compass-tasks-osa and compass-tasks-k8s
JIRA: COMPASS-568
rename compass-tasks to compass-tasks-base.
add both osa and k8s support in compass-tasks
Change-Id: I438f5b17e509d4cb751ced0ffe640ec70899882f
Signed-off-by: Harry Huang <huangxiangyu5@huawei.com>
Diffstat (limited to 'compass-tasks/build.sh')
-rwxr-xr-x | compass-tasks/build.sh | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/compass-tasks/build.sh b/compass-tasks/build.sh deleted file mode 100755 index e0dceea..0000000 --- a/compass-tasks/build.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/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]%/*} - -rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm -sed -i 's/^mirrorlist=https/mirrorlist=http/g' /etc/yum.repos.d/epel.repo -yum update -y - -yum --nogpgcheck install -y python python-devel git amqp python-pip libffi-devel openssl-devel gcc python-setuptools MySQL-python supervisor redis sshpass python-keyczar vim ansible-2.2.1.0 libyaml-devel make - -mkdir -p $COMPASS_DIR/compass -touch $COMPASS_DIR/compass/__init__.py -mv $COMPASS_DIR/actions $COMPASS_DIR/compass/ -mv $COMPASS_DIR/apiclient $COMPASS_DIR/compass/ -mv $COMPASS_DIR/tasks $COMPASS_DIR/compass/ -mv $COMPASS_DIR/utils $COMPASS_DIR/compass/ -mv $COMPASS_DIR/deployment $COMPASS_DIR/compass/ -mv $COMPASS_DIR/db $COMPASS_DIR/compass/ -mv $COMPASS_DIR/hdsdiscovery $COMPASS_DIR/compass/ -mv $COMPASS_DIR/log_analyzor $COMPASS_DIR/compass/ - -easy_install --upgrade pip -pip install --upgrade pip -pip install --upgrade setuptools -pip install --upgrade Flask - -mkdir -p /etc/compass/ -mkdir -p /etc/compass/machine_list -mkdir -p /etc/compass/switch_list -mkdir -p /var/log/compass -mkdir -p /opt/ansible_callbacks -mkdir -p /root/.ssh; -echo "UserKnownHostsFile /dev/null" >> /root/.ssh/config; -echo "StrictHostKeyChecking no" >> /root/.ssh/config - -cd $COMPASS_DIR -python setup.py install -cp supervisord.conf /etc/supervisord.conf -cp start.sh /usr/local/bin/start.sh - -yum clean all - -set -x |