toe-beans 0.10.0

DHCP library, client, and server
Documentation
# See:
# - https://kb.isc.org/docs/perfdhcp
# - https://kea.readthedocs.io/en/stable/man/perfdhcp.8.html

# You can inspect the leases file by entering the container with:
# `sudo docker.compose exec server bash`

name: perfdhcp

services:
  server:
    extends:
      file: ../server/docker-compose.yml
      service: server
    environment:
      - RUST_LOG=warn
  perfdhcp:
    cap_add:
      - NET_ADMIN
    build:
      dockerfile_inline: |
        FROM debian:trixie-slim
        COPY ./isc-kea-common_3.0.3_arm64.deb .
        COPY ./isc-kea-perfdhcp_3.0.3_arm64.deb .
        RUN apt update
        RUN apt install -y ./isc-kea-common_3.0.3_arm64.deb
        RUN apt install -y ./isc-kea-perfdhcp_3.0.3_arm64.deb
    depends_on:
      server:
        condition: service_healthy

    # # Uncomment this and set `RUST_LOG=debug` above to test a single client acquiring a single lease.
    # command: perfdhcp -N 67 -L 68 -l eth0 -R 1 -r 1 -p 1 -g multi --scenario basic

    # # Uncomment this for load testing
    command: perfdhcp -N 67 -L 68 -l eth0 -W 5 -R 1000000 -p 3 -g multi --scenario basic