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 AS installer
RUN apt update && apt install -y curl bash
RUN curl -1sLf \
'https://dl.cloudsmith.io/public/isc/kea-3-0/setup.deb.sh' | bash
RUN apt update && apt install -y isc-kea-perfdhcp
# # This appears to be slower because of musl?
# FROM alpine:latest
# RUN apk add --no-cache bash curl
# RUN curl -1sLf \
# 'https://dl.cloudsmith.io/public/isc/kea-3-0/setup.alpine.sh' \
# | bash
# RUN apk add --no-cache kea-perfdhcp
depends_on:
server:
condition: service_healthy
command: perfdhcp -N 67 -L 68 -l eth0 -W 5 -R 1000000 -p 3 -g multi --scenario basic