diff --git a/Makefile b/Makefile index 9a43fef14..66db87c92 100644 --- a/Makefile +++ b/Makefile @@ -77,7 +77,7 @@ ifeq ($(ARCH),x86) endif ifeq ($(ARCH),mips) - DEFINES := -DCONFIG_MIPS + DEFINES := -DCONFIG_MIPS endif # @@ -369,11 +369,11 @@ gcov: .PHONY: gcov docker-build: - $(MAKE) -C scripts/build/ x86_64 + $(MAKE) -C scripts/build/ x86_64 .PHONY: docker-build docker-test: - docker run --rm -it --privileged criu-x86_64 ./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup + docker run --rm -it --privileged -v /lib/modules:/lib/modules criu-x86_64 ./test/zdtm.py run -a -x tcp6 -x tcpbuf6 -x static/rtc -x cgroup .PHONY: docker-test help: diff --git a/scripts/build/Dockerfile.tmpl b/scripts/build/Dockerfile.tmpl index 66e3d8c59..e0e72372d 100644 --- a/scripts/build/Dockerfile.tmpl +++ b/scripts/build/Dockerfile.tmpl @@ -2,6 +2,8 @@ ARG CC=gcc COPY scripts/ci/apt-install /bin/apt-install +# On Ubuntu, kernel modules such as ip_tables and xt_mark may not be loaded by default +# We need to install kmod to enable iptables to load these modules for us. RUN apt-install \ libnet-dev \ libnl-route-3-dev \ @@ -20,10 +22,15 @@ RUN apt-install \ libprotobuf-c-dev \ libprotobuf-dev \ libselinux-dev \ + iproute2 \ + kmod \ pkg-config \ protobuf-c-compiler \ protobuf-compiler \ + python-is-python3 \ python3-minimal \ + python3-protobuf \ + python3-yaml \ python3-future COPY . /criu