[docker] Reduce the number of build steps in containers
[barometer.git] / systems / ubuntu / 16.04 / build_base_machine.sh
1 #!/bin/bash
2 # Copyright 2016-2019 Intel Corporation and OPNFV. All rights reserved.
3 #
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
7 #
8 # http://www.apache.org/licenses/LICENSE-2.0
9 #
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
15 #
16
17 set -eux
18
19 export DEBIAN_FRONTEND=noninteractive
20
21 apt-get -yq update
22 apt-get -yq install build-essential dh-autoreconf fakeroot devscripts dpkg-dev git-core wget sudo
23
24 apt-get -yq install \
25     debhelper dpkg-dev po-debconf dh-systemd dh-strip-nondeterminism \
26     bison flex autotools-dev libltdl-dev pkg-config \
27     iptables-dev \
28     javahelper \
29     libatasmart-dev \
30     libcap-dev \
31     libcurl4-gnutls-dev \
32     libdbi0-dev \
33     libesmtp-dev \
34     libganglia1-dev \
35     libgcrypt11-dev \
36     libglib2.0-dev \
37     libgps-dev \
38     libhiredis-dev \
39     libi2c-dev \
40     libldap2-dev \
41     liblua5.3-dev \
42     liblvm2-dev \
43     libmemcached-dev \
44     libmodbus-dev \
45     libmnl-dev \
46     libmosquitto-dev \
47     libmysqlclient-dev \
48     libnotify-dev \
49     libopenipmi-dev \
50     liboping-dev \
51     libow-dev \
52     libpcap0.8-dev \
53     libpcap-dev\
54     libperl-dev \
55     libpq-dev \
56     libprotobuf-c-dev \
57     libriemann-client-dev \
58     librdkafka-dev \
59     librabbitmq-dev \
60     librrd-dev \
61     libsensors4-dev \
62     libsigrok-dev \
63     libsnmp-dev \
64     libsnmp9-dev \
65     snmp \
66     snmp-mibs-downloader \
67     snmpd \
68     perl \
69     libtokyocabinet-dev \
70     libtokyotyrant-dev \
71     libudev-dev \
72     libupsclient-dev \
73     libvarnishapi-dev \
74     libvirt-dev \
75     libvirt-daemon \
76     libxen-dev \
77     libxml2-dev \
78     libyajl-dev \
79     linux-libc-dev \
80     default-jdk \
81     protobuf-c-compiler \
82     python-dev \
83     openvswitch-switch \
84     mcelog
85