fix making building image issues

Use "host" network mode instead of default "bridge" mode to access
external network.

Change-Id: I5735489c480c074a64cd72406592b758040e3be0
Signed-off-by: Yi Wang <yi.c.wang@intel.com>
This commit is contained in:
Yi Wang 2018-07-05 11:34:27 +08:00
parent da6bee6d41
commit e80c20cdfe

View File

@ -24,6 +24,7 @@ include .makeenv
base-build:
docker build \
--ulimit core=0 \
--network host \
-t $(BASE_CONTAINER_TAG) \
-f $(BASE_DOCKERFILE) \
.
@ -38,6 +39,7 @@ build:
--build-arg MYUID=$(UID) \
--build-arg MYUNAME=$(MYUNAME) \
--ulimit core=0 \
--network host \
-t $(TC_CONTAINER_TAG) \
-f $(TC_DOCKERFILE) \
.