From: mikarautakumpu Date: Tue, 17 Mar 2020 10:12:45 +0000 (+0200) Subject: Add --network=host flag for more stable network X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F99%2F3299%2F1;p=ta%2Fbuild-tools.git 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 --- 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