diff options
| author | Christian Hopps <chopps@labn.net> | 2025-01-12 02:30:08 +0000 | 
|---|---|---|
| committer | Christian Hopps <chopps@labn.net> | 2025-01-12 02:48:29 +0000 | 
| commit | 1cfccbf10377d6e7997e4a2f61d1f921a5b56c2b (patch) | |
| tree | ce8fd2e96161276d43715d80b4df09ef25db5b47 /docker/ubuntu24-ci/README.md | |
| parent | 901d05961473d48398eb1166dd6530b2b7651922 (diff) | |
docker: add ubuntu24-ci docker image support
Signed-off-by: Christian Hopps <chopps@labn.net>
Diffstat (limited to 'docker/ubuntu24-ci/README.md')
| -rw-r--r-- | docker/ubuntu24-ci/README.md | 66 | 
1 files changed, 66 insertions, 0 deletions
diff --git a/docker/ubuntu24-ci/README.md b/docker/ubuntu24-ci/README.md new file mode 100644 index 0000000000..38ba0ee171 --- /dev/null +++ b/docker/ubuntu24-ci/README.md @@ -0,0 +1,66 @@ +# Ubuntu 24.04 + +This builds an ubuntu 24.04 container for dev / test + +# Build + +``` +docker build -t frr-ubuntu24:latest --build-arg=UBUNTU_VERSION=24.04 -f docker/ubuntu-ci/Dockerfile . +``` + +# Run + +``` +docker run -d --init --privileged --name frr-ubuntu24 --mount type=bind,source=/lib/modules,target=/lib/modules frr-ubuntu24:latest +``` + +# Running full topotest (container stops at end) + +``` +docker run --init -it --privileged --name frr-ubuntu24 \ +    -v /lib/modules:/lib/modules frr-ubuntu24:latest \ +    bash -c 'cd /home/frr/frr/tests/topotests; sudo pytest -nauto --dist=loadfile' +``` + +# Extract results from the above run into `run-results` dir and analyze + +``` +tests/topotests/analyze.py -C frr-ubuntu24 -Ar run-results +``` + +# Extract coverage from a stopped container into host FRR source tree + +``` +docker export frr-ubuntu24 | tar --strip=3 --wildcards -vx '*.gc??' +lcov -b $(pwd) --capture --directory . --output-file=coverage.info +``` + +# make check + +``` +docker exec frr-ubuntu24 bash -c 'cd ~/frr ; make check' +``` + +# interactive bash + +``` +docker exec -it frr-ubuntu24 bash +``` + +# Run a specific topotest + +``` +docker exec frr-ubuntu24 bash -c 'cd ~/frr/tests/topotests ; sudo pytest ospf_topo1/test_ospf_topo1.py' +``` + +# stop & remove container + +``` +docker stop frr-ubuntu24 ; docker rm frr-ubuntu24 +``` + +# remove image + +``` +docker rmi frr-ubuntu24:latest +```  | 
