build: docker: Use host's network stack 05/19805/1
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 29 Aug 2016 21:04:12 +0000 (23:04 +0200)
committerAlexandru Avadanii <Alexandru.Avadanii@enea.com>
Mon, 29 Aug 2016 21:30:54 +0000 (21:30 +0000)
commitc563c8b061b52cc1506758aa83bfe44c0e11ccb8
treeda48d2ddb0b45c79b93af42b16739a99e5fcc7a1
parentec26aaa98dfc2e56a6e32729efe22e6b7ac99205
build: docker: Use host's network stack

Armband build benefits (or should have) of a local mirror
for "linux.enea.com", which we used to inject into the build
system by host's "/etc/hosts".

After Armband switched to building inside docker, this change
was silently discarded by containerization.

The proposed solution uses hosts's network stack in all build
containers.

See [1] for full description.
This change simplifies the network abstraction during build by
NOT containerizing the containers' networking.

The original motivation was pointing to local mirrors via host's
"/etc/hosts", for which an alternative solution could be passing
"-v /etc/hosts:/etc/hosts".

[1] https://docs.docker.com/v1.8/articles/networking/

Change-Id: I31e3c787a432af49b4799f561669a0150668b222
Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
(cherry picked from commit 6ae4e120c5f6aab6834e0ec42599e1b409a9af05)
patches/opnfv-fuel/0055-build-docker-Use-host-s-network-stack.patch [new file with mode: 0644]