Move docker build stuff into a subdirectory. Update structure to retire manual-{pre,post}
This commit is contained in:
18
README.md
18
README.md
@ -2,24 +2,24 @@
|
||||
|
||||
This docker container creates a VPP instance based on the latest VPP release. It starts up as per
|
||||
normal, using /etc/vpp/startup.conf (which Containerlab might replace when it starts its
|
||||
containers). Once started, it'll execute /etc/vpp/bootstrap.vpp within the dataplane. There are
|
||||
three relevant files:
|
||||
containers). Once started, it'll execute `/etc/vpp/bootstrap.vpp` within the dataplane. There are
|
||||
two relevant files:
|
||||
|
||||
1. `manual-pre.vpp` -- can be supplied by the user, to run any configuration statements before
|
||||
containerlab takes control.
|
||||
|
||||
1. `clab.vpp` -- generated by `files/container-init.sh`. Its purpose is to bind the `veth`
|
||||
1. `clab.vpp` -- generated by `files/init-container.sh`. Its purpose is to bind the `veth`
|
||||
interfaces that containerlab has added to the container into the VPP dataplane (see below).
|
||||
1. `vppcfg.vpp` -- generated by `files/init-container.sh`. Its purpose is to read the user
|
||||
specified `vppcfg.yaml` file and convert it into VPP CLI commands. If no YAML file is
|
||||
specified, or if it is not syntactically valid, an empty file is generated instead.
|
||||
|
||||
1. `manual-post.vpp` -- can be supplied by the user, to run any configuration statements after
|
||||
containerlab is finished with its per-lab statements.
|
||||
For Containerlab users who wish to have more control over their VPP bootstrap, it's possible to
|
||||
bind-mount `/etc/vpp/bootstrap.vpp`.
|
||||
|
||||
## Building
|
||||
|
||||
```bash
|
||||
IMG=git.ipng.ch/ipng/vpp-containerlab
|
||||
TAG=latest
|
||||
docker build --no-cache -f Dockerfile.bookworm -t $IMG .
|
||||
docker build --no-cache -f docker/Dockerfile.bookworm -t $IMG docker/
|
||||
docker image tag $IMG $IMG:$TAG
|
||||
docker push $IMG
|
||||
docker push $IMG:$TAG
|
||||
|
Reference in New Issue
Block a user