Compare commits
2 Commits
17c3977873
...
main
Author | SHA1 | Date | |
---|---|---|---|
ea8cd89de9 | |||
2b03aad9bc |
27
README.md
27
README.md
@ -91,13 +91,28 @@ bind-mount `/etc/vpp/bootstrap.vpp`.
|
|||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
||||||
|
To build, this container uses Docker's `buildx`, for which on Debian Bookworm it's required to use
|
||||||
|
the upstream (docker.com) packages described [[here](https://docs.docker.com/engine/install/debian/)].
|
||||||
|
To allow the buildx to build for multi-arch, it's also required to install the Qemu `binfmt`
|
||||||
|
emulators, with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker run --privileged --rm tonistiigi/binfmt --install all
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, ongoing builds can be cross-platform and take about 1500 seconds on an AMD64 i7-12700T
|
||||||
|
The buildx invocation will build 'latest' and then tag it with the current VPP package release,
|
||||||
|
which you can get from `vppcfg show version`, like so:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
IMG=git.ipng.ch/ipng/vpp-containerlab
|
IMG=git.ipng.ch/ipng/vpp-containerlab
|
||||||
TAG=latest
|
TAG=latest
|
||||||
docker build --no-cache --build-arg REPO=release -f docker/Dockerfile -t $IMG docker/
|
docker buildx build --push --platform linux/arm64,linux/amd64 \
|
||||||
docker image tag $IMG $IMG:$TAG
|
--tag $IMG:$TAG -f docker/Dockerfile docker/
|
||||||
docker push $IMG
|
|
||||||
docker push $IMG:$TAG
|
TAG=v25.02-release
|
||||||
|
docker buildx build --push --platform linux/arm64,linux/amd64 \
|
||||||
|
--tag $IMG:$TAG -f docker/Dockerfile docker/
|
||||||
```
|
```
|
||||||
|
|
||||||
### Testing standalone container
|
### Testing standalone container
|
||||||
@ -172,7 +187,3 @@ Containerlab will attach these `veth` pairs to the container, and replace our Do
|
|||||||
that waits for all of these interfaces to be added (typically called `if-wait.sh`). In our own CMD,
|
that waits for all of these interfaces to be added (typically called `if-wait.sh`). In our own CMD,
|
||||||
we then generate a config file called `/etc/vpp/clab.vpp` which contains the necessary VPP commands
|
we then generate a config file called `/etc/vpp/clab.vpp` which contains the necessary VPP commands
|
||||||
to take control over these `veth` pairs.
|
to take control over these `veth` pairs.
|
||||||
|
|
||||||
In addition, you can add more commands that'll execute on startup by copying in
|
|
||||||
`/etc/vpp/manual-pre.vpp` (to be executed _before_ the containerlab stuff) or
|
|
||||||
`/etc/vpp/manual-post.vpp` (to be executed _after_ the containerlab stuff).
|
|
||||||
|
Reference in New Issue
Block a user