From f3b2233d126aec8ab15fa589f5a9360eec280f01 Mon Sep 17 00:00:00 2001 From: Anusha Ragunathan Date: Wed, 10 Feb 2016 11:01:22 -0800 Subject: [PATCH] Add "dummy" network module for arm images. A few libnetwork integration tests require that the kernel be configured with the "dummy" network interface and has the module loaded. However, the dummy module is not available by default on arm images. This ensures that it is built and loaded. Signed-off-by: Anusha Ragunathan --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 5200206924..437ef48b5d 100644 --- a/Makefile +++ b/Makefile @@ -80,6 +80,16 @@ binary: build $(DOCKER_RUN_DOCKER) hack/make.sh binary build: bundles +ifeq ($(DOCKER_OSARCH), linux/arm) + # A few libnetwork integration tests require that the kernel be + # configured with "dummy" network interface and has the module + # loaded. However, the dummy module is not available by default + # on arm images. This ensures that it's built and loaded. + echo "Syncing kernel modules" + oc-sync-kernel-modules + depmod + modprobe dummy +endif docker build ${DOCKER_BUILD_ARGS} -t "$(DOCKER_IMAGE)" -f "$(DOCKERFILE)" . bundles: