summaryrefslogtreecommitdiffstats
path: root/docker/ubuntu22-ci/README.md
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-09 13:16:35 +0000
commite2bbf175a2184bd76f6c54ccf8456babeb1a46fc (patch)
treef0b76550d6e6f500ada964a3a4ee933a45e5a6f1 /docker/ubuntu22-ci/README.md
parentInitial commit. (diff)
downloadfrr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.tar.xz
frr-e2bbf175a2184bd76f6c54ccf8456babeb1a46fc.zip
Adding upstream version 9.1.upstream/9.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docker/ubuntu22-ci/README.md')
-rw-r--r--docker/ubuntu22-ci/README.md57
1 files changed, 57 insertions, 0 deletions
diff --git a/docker/ubuntu22-ci/README.md b/docker/ubuntu22-ci/README.md
new file mode 100644
index 0000000..403abbf
--- /dev/null
+++ b/docker/ubuntu22-ci/README.md
@@ -0,0 +1,57 @@
+# Ubuntu 22.04
+
+This builds an ubuntu 22.04 container for dev / test
+
+# Build
+
+```
+docker build -t frr-ubuntu22:latest -f docker/ubuntu-ci/Dockerfile .
+```
+
+# Running Full Topotest
+
+```
+docker run --init -it --privileged --name frr -v /lib/modules:/lib/modules frr-ubuntu22:latest bash -c 'cd ~/frr/tests/topotests ; sudo pytest -nauto --dist=loadfile'
+```
+
+# Extract results from the above run into `run-results` dir and analyze
+
+```
+tests/topotest/analyze.py -C frr -Ar run-results
+```
+
+# Running
+
+```
+docker run -d --init --privileged --name frr --mount type=bind,source=/lib/modules,target=/lib/modules frr-ubuntu22:latest
+```
+
+# make check
+
+```
+docker exec frr bash -c 'cd ~/frr ; make check'
+```
+
+# interactive bash
+
+```
+docker exec -it frr bash
+```
+
+# topotest -- when Host O/S is Ubuntu only
+
+```
+docker exec frr bash -c 'cd ~/frr/tests/topotests/ospf-topo1 ; sudo pytest test_ospf_topo1.py'
+```
+
+# stop & remove container
+
+```
+docker stop frr ; docker rm frr
+```
+
+# remove image
+
+```
+docker rmi frr-ubuntu22:latest
+```