Yang Xu | 21b09c9 | 2019-06-13 13:19:20 -0400 | [diff] [blame] | 1 | #!/bin/bash |
Bartek Grzybowski | 79bd9e7 | 2019-09-30 15:01:16 +0200 | [diff] [blame] | 2 | |
| 3 | # COPYRIGHT NOTICE STARTS HERE |
| 4 | # |
| 5 | # Copyright 2019 Samsung Electronics Co., Ltd. |
Yang Xu | 21b09c9 | 2019-06-13 13:19:20 -0400 | [diff] [blame] | 6 | # |
| 7 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 8 | # you may not use this file except in compliance with the License. |
| 9 | # You may obtain a copy of the License at |
| 10 | # |
| 11 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 12 | # |
Bartek Grzybowski | 79bd9e7 | 2019-09-30 15:01:16 +0200 | [diff] [blame] | 13 | # Unless required by applicable law or agreed to in writing, software |
| 14 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 15 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 16 | # See the License for the specific language governing permissions and |
| 17 | # limitations under the License. |
| 18 | # |
| 19 | # COPYRIGHT NOTICE ENDS HERE |
Yang Xu | 21b09c9 | 2019-06-13 13:19:20 -0400 | [diff] [blame] | 20 | |
Bartek Grzybowski | 79bd9e7 | 2019-09-30 15:01:16 +0200 | [diff] [blame] | 21 | # This script prepares the runtime environment |
| 22 | # for running vCPE python scripts on Ubuntu 16.04, |
| 23 | # 18.04 and on Centos/Rhel 7.6. |
| 24 | |
| 25 | if command -v apt-get > /dev/null; |
| 26 | then |
| 27 | apt-get update |
| 28 | apt-get -y install python gcc python-dev; |
| 29 | fi |
| 30 | if command -v yum > /dev/null; |
| 31 | then |
| 32 | yum -y install python-devel gcc; |
| 33 | fi |
| 34 | |
| 35 | curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py |
| 36 | python get-pip.py |
| 37 | pip install -I \ |
| 38 | ipaddress \ |
| 39 | pyyaml \ |
| 40 | mysql-connector-python \ |
| 41 | progressbar2 \ |
| 42 | python-novaclient \ |
| 43 | python-openstackclient \ |
| 44 | python-heatclient \ |
| 45 | kubernetes \ |
| 46 | netaddr |