Merge "net-check: add support for faulty operstate"
[armband.git] / patches / opnfv-fuel / 0055-build-docker-Use-host-s-network-stack.patch
1 From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
2 Date: Mon, 29 Aug 2016 22:58:49 +0200
3 Subject: [PATCH] build: docker: Use host's /etc/hosts
4
5 The original motivation was pointing to local mirrors via host's
6 "/etc/hosts", for which an alternative solution tested was
7 "--net=host" (see [1] for full description), but lead to wierd
8 loss of connectivity after a few builds.
9
10 [1] https://docs.docker.com/v1.8/articles/networking/
11
12 Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
13 ---
14  build/docker/runcontext | 2 +-
15  1 file changed, 1 insertion(+), 1 deletion(-)
16
17 diff --git a/build/docker/runcontext b/build/docker/runcontext
18 index 07b0dc1..b0d6d37 100755
19 --- a/build/docker/runcontext
20 +++ b/build/docker/runcontext
21 @@ -121,6 +121,7 @@ RUN_CONTEXT_OPT="--cidfile $CID_FILE --privileged=true --rm --net=host \
22      -e MIRROR_MOS_UBUNTU -e MIRROR_MOS_UBUNTU_ROOT -e MIRROR_FUEL \
23      -e LATEST_TARGET_UBUNTU -e UBUNTU_ARCH -e ARMBAND_BASE -e OPNFV_GIT_SHA \
24      -u $USER_ID:$GROUP_ID -w $PWD \
25 +    -v /etc/hosts:/etc/hosts \
26      -v $GITROOT:$GITROOT -v /sys/fs/cgroup:/sys/fs/cgroup:ro $CACHEMOUNT"
27
28  # Passing "debug" puts up an interactive bash shell