aboutsummaryrefslogtreecommitdiffstats
path: root/coin/provisioning/common/linux
diff options
context:
space:
mode:
authorRyan Chu <ryan.chu@qt.io>2018-12-05 12:17:34 +0100
committerLiang Qi <liang.qi@qt.io>2018-12-10 14:11:01 +0000
commit959d9bdb67017819328f086636fed4c00c46d0ad (patch)
treee122896ad5014f804feccba6986b7d759cb3bf62 /coin/provisioning/common/linux
parenta6951304782f02400cef961f6ab22f0b4a2a8afc (diff)
Docker Provisioning: Install Avahi daemon on Ubuntu
Avahi is a free Zeroconf implementation and provides mDNS service discovery. It enables Docker containers to publish their services on a local network. For the host systems supporting mDNS technology, they will automatically discover the services when running network tests. However, some of the Linux distributions don't have avahi-daemon installation by default (e.g. Ubuntu Server 18.04). To not surprise the user, the provisioning script will help to install avahi-daemon package. Change-Id: Ibb4c278c552c149b15da8cf7918f7f71ffa3ebec Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
Diffstat (limited to 'coin/provisioning/common/linux')
-rwxr-xr-xcoin/provisioning/common/linux/docker.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/coin/provisioning/common/linux/docker.sh b/coin/provisioning/common/linux/docker.sh
index 07cedba9..1d9e8419 100755
--- a/coin/provisioning/common/linux/docker.sh
+++ b/coin/provisioning/common/linux/docker.sh
@@ -48,5 +48,8 @@ sudo docker info
sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
+# Install Avahi to discover Docker containers in the test network
+sudo apt-get install avahi-daemon -y
+
# Start testserver provisioning
source "${BASH_SOURCE%/*}/docker_testserver.sh"