From 3b2032137f5d907a800be475cfa399f7f7c231b6 Mon Sep 17 00:00:00 2001 From: mikarautakumpu Date: Tue, 17 Mar 2020 12:12:45 +0200 Subject: [PATCH 1/1] Add --network=host flag for more stable network There is random connection issues in the network. When using docker for testing, adding the "--network=host" flag makes it much more stable. Signed-off-by: mikarautakumpu Change-Id: Ib1882d69c16880c927bc9610f8bf33bfc1fc5eef --- build_images.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build_images.sh b/build_images.sh index 66ef153..281b166 100755 --- a/build_images.sh +++ b/build_images.sh @@ -60,8 +60,8 @@ if [ -e "${dib_patch}" ] && ! patch -R --dry-run "${dib_file}" "${dib_patch}"; t patch "${dib_file}" "${dib_patch}" fi -docker build -f $scriptdir/docker-context/Dockerfile-dib -t dib $scriptdir/docker-context -docker build -f $scriptdir/docker-context/Dockerfile-buildtools -t buildtools $scriptdir/docker-context +docker build --network=host -f $scriptdir/docker-context/Dockerfile-dib -t dib $scriptdir/docker-context +docker build --network=host -f $scriptdir/docker-context/Dockerfile-buildtools -t buildtools $scriptdir/docker-context # Create manifest RPM $LIBDIR/create_manifest_rpm.sh -- 2.16.6