Project

General

Profile

Statistics
| Branch: | Revision:

gdp-if / mqtt-gateway / setup-mqtt-gdp-gateway.sh @ master

History | View | Annotate | Download (692 Bytes)

1
#!/bin/sh
2

    
3
#
4
#  Set up MQTT-GDP gateway container
5
#
6
#	This runs in the container during the build process.  It is not
7
#		used if you are running mqtt-gdp-gateway natively.
8
#
9

    
10
cd `dirname $0`
11
uhkroot=`pwd`
12

    
13
. $uhkroot/setup-common.sh
14

    
15
echo 	""
16
info "Installing Debian packages needed for MQTT-GDP gateway"
17
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
18
	libmosquitto-dev \
19
	locales \
20
	mosquitto-clients \
21
	psmisc \
22

    
23
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce-cli
24
sudo apt-get clean
25

    
26
echo ""
27
info "Compiling and installing UHK code (assumes GDP base code already installed)"
28
make GDP_SRC_ROOT=$GDP_SRC_ROOT clean all
29
sudo make GDP_SRC_ROOT=$GDP_SRC_ROOT install