Project

General

Profile

Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (692 Bytes)

1 97679b97 Eric Allman
#!/bin/sh
2
3
#
4 36d3cd8f Eric Allman
#  Set up MQTT-GDP gateway container
5 97679b97 Eric Allman
#
6 36d3cd8f Eric Allman
#	This runs in the container during the build process.  It is not
7
#		used if you are running mqtt-gdp-gateway natively.
8 97679b97 Eric Allman
#
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 daf0b780 Eric Allman
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y \
18 97679b97 Eric Allman
	libmosquitto-dev \
19
	locales \
20
	mosquitto-clients \
21
	psmisc \
22
23 36d3cd8f Eric Allman
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y docker-ce-cli
24 e2c9bf76 Eric Allman
sudo apt-get clean
25 daf0b780 Eric Allman
26 97679b97 Eric Allman
echo ""
27
info "Compiling and installing UHK code (assumes GDP base code already installed)"
28 b05f798b Eric Allman
make GDP_SRC_ROOT=$GDP_SRC_ROOT clean all
29
sudo make GDP_SRC_ROOT=$GDP_SRC_ROOT install