From 9e260ddd301915ee0417d7676170534b79ad2ad6 Mon Sep 17 00:00:00 2001 From: Maryam Tahhan Date: Tue, 23 May 2017 15:58:19 +0100 Subject: install: remove unused scripts in src Remove unused scripts in src. Relocate relavent scripts to system. Tested on CentOS 7 and Ubuntu 16.04. Change-Id: Id6bb00df854760c6bbf8d47011a9f6f7fe2c230b Signed-off-by: Maryam Tahhan --- systems/centos/7/build_base_machine.sh | 59 ++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 systems/centos/7/build_base_machine.sh (limited to 'systems/centos/7/build_base_machine.sh') diff --git a/systems/centos/7/build_base_machine.sh b/systems/centos/7/build_base_machine.sh new file mode 100755 index 00000000..438c1435 --- /dev/null +++ b/systems/centos/7/build_base_machine.sh @@ -0,0 +1,59 @@ +#!/bin/bash +# +# Build a base machine for CentOS distro +# +# Copyright 2017 OPNFV +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Contributors: +# Aihua Li, Huawei Technologies. +# Martin Klozik, Intel Corporation. +# Maryam Tahhan, Intel Corporation. +# Synchronize package index files +yum -y update + +# For collectd +yum install -y yum-utils +yum install -y epel-release +yum-builddep -y collectd + +# Install required packages +yum -y install $(echo " + +kernel-devel +kernel-headers +make +gcc +gcc-c++ +autoconf +automake +flex +bison +libtool +pkg-config +git +rpm-build +libcap-devel +xfsprogs-devel +iptables-devel +libmemcached-devel +gtk2-devel +libvirt-devel +mcelog +wget + +# install epel release required for git-review +epel-release +" | grep -v ^#) + -- cgit 1.2.3-korg