mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-28 04:08:33 +00:00
58 lines
1.1 KiB
Markdown
58 lines
1.1 KiB
Markdown
# 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-ubuntu22 -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/topotests/analyze.py -C frr-ubuntu22 -Ar run-results
|
|
```
|
|
|
|
# Running
|
|
|
|
```
|
|
docker run -d --init --privileged --name frr-ubuntu22 --mount type=bind,source=/lib/modules,target=/lib/modules frr-ubuntu22:latest
|
|
```
|
|
|
|
# make check
|
|
|
|
```
|
|
docker exec frr-ubuntu22 bash -c 'cd ~/frr ; make check'
|
|
```
|
|
|
|
# interactive bash
|
|
|
|
```
|
|
docker exec -it frr-ubuntu22 bash
|
|
```
|
|
|
|
# topotest -- when Host O/S is Ubuntu only
|
|
|
|
```
|
|
docker exec frr-ubuntu22 bash -c 'cd ~/frr/tests/topotests/ospf_topo1 ; sudo pytest test_ospf_topo1.py'
|
|
```
|
|
|
|
# stop & remove container
|
|
|
|
```
|
|
docker stop frr-ubuntu22 ; docker rm frr-ubuntu22
|
|
```
|
|
|
|
# remove image
|
|
|
|
```
|
|
docker rmi frr-ubuntu22:latest
|
|
```
|