From 525a7f326f6f8c91971abf3ec148274045b719a5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= <radoslaw.piliszek@gmail.com>
Date: Tue, 3 Mar 2020 13:15:30 +0100
Subject: [PATCH] CI: Use network mode = host for builds

This avoids issues with IPv6 not enabled in docker.

Change-Id: I0faa1df8a04acd1746fa8a5f0d8455f819c254b5
---
 tools/setup_gate.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tools/setup_gate.sh b/tools/setup_gate.sh
index c06a0bb88..793610675 100755
--- a/tools/setup_gate.sh
+++ b/tools/setup_gate.sh
@@ -81,6 +81,9 @@ registry = 127.0.0.1:4000
 push = ${PUSH}
 logs_dir = /tmp/logs/build
 template_override = /etc/kolla/template_overrides.j2
+# NOTE(yoctozepto): to avoid issues with IPv6 not enabled in the docker daemon
+# and since we don't need isolated networks here, use host networking
+network_mode = host
 
 [profiles]
 gate = ${GATE_IMAGES}
-- 
GitLab