#docker

2 articles

Testcontainers and Reuse

Testcontainers, a project that uses OCI to provide, well, containers for testing for modules, has a reuse feature that lets a multi-module Maven build share one Postgres container across all test JVMs. This requires creating a separate database per JVM to maintain isolation and avoid migration conflicts.

sonar: a command line tool to inspect port usage

RasKrebs' sonar is a CLI tool for inspecting and managing everything listening on localhost ports. The name is overloaded, and badly, but the tool works well. So they built something more suitable for their purposes. sonar list gives you ports, process names, Docker container names, Compose projects, CPU/memory usage, and clickable URLs in one shot.