mount bpffs inside docker containers
@@ -6,7 +6,6 @@ FUZZ_ASAN=ASAN_OPTIONS=detect_leaks=0
DOCKER_RUN_OPTS=--privileged \
-v `pwd`:$(SRC_DIR) \
-v /sys/kernel/debug:/sys/kernel/debug \
- -v /sys/fs/bpf:/sys/fs/bpf \
-v /lib/modules:/lib/modules:ro \
-v /usr/src:/usr/src:ro \
--add-host=127.0.0.1.xip.io:127.0.0.1 \
@@ -27,12 +26,12 @@ ossl1.1.1:
CMAKE_ARGS='-DOPENSSL_ROOT_DIR=/opt/openssl-1.1.1'
dtrace:
- sudo mount bpffs /sys/fs/bpf -t bpf
docker run $(DOCKER_RUN_OPTS) $(CONTAINER_NAME) env DTRACE_TESTS=1 make -f $(SRC_DIR)/misc/docker-ci/check.mk _check
_check:
uname -a
mkdir -p build
+ sudo mount -t bpf bpffs /sys/fs/bpf
sudo mount -t tmpfs tmpfs build -o size=3G
sudo chown -R ci:ci build
sudo chmod 0755 build
