toe-beans 0.8.0

DHCP library, client, and server
Documentation
version: "3"
name: third-party-testing

services:
  server:
    build: .
    image: server-client
    # volumes:
    #   - "./:/app"
    # working_dir: /app
    environment:
      - RUST_LOG=debug
    healthcheck:
      test: ["CMD", "lsof", "-i:67"]
      interval: 30s
      timeout: 4m
      retries: 10
      start_period: 20s
    command: ./target/release/server

  client:
    cap_add:
      - NET_ADMIN
    # use the built image above instead of duplicating it
    image: server-client
    pull_policy: never
    # volumes:
    #   - "./:/app"
    # working_dir: /app
    environment:
      - RUST_LOG=debug
    depends_on:
      server:
        condition: service_healthy
    command: ./target/release/client --interface eth0 dora

  dhclient:
    cap_add:
      - NET_ADMIN
    build:
      dockerfile_inline: |
        FROM debian:trixie-slim
        RUN apt-get update && apt-get install -y isc-dhcp-client
    depends_on:
      server:
        condition: service_healthy
    command: dhclient -v -p 68