DockerBuildRunnerTest

11

tests

0

failures

0

ignored

1.009s

duration

100%

successful

Tests

Test Duration Result
a rootless socket runs the container as root (the host user) without group-add or host-id chown 0.098s passed
assembles the exact docker run command (rootful socket, default network) 0.300s passed
builds a missing image from the Dockerfile with the input labels 0.051s passed
exposes git metadata read-only with the werkator dir masked for a worktree workspace 0.100s passed
fails without a configured image 0.009s passed
host network keeps Testcontainers on localhost without add-host 0.128s passed
mounts no git metadata when the workspace is not a worktree 0.086s passed
prepares the gradle cache volume once but removes the container before every command 0.054s passed
removes stale labelled build containers once, before the first docker build 0.039s passed
skips the image build when the build-inputs label still matches 0.057s passed
without a docker socket the container runs without socket mount as root 0.087s passed

Standard output

Creating nstance of class de.hoennig.werkator.build.DockerBuildRunnerTest
2026-09-03T12:34:54.241Z  INFO 146 --- [-1196766417#127] d.h.werkator.build.DockerBuildRunner     : building Docker image build-env:latest from Dockerfile
2026-09-03T12:34:54.403Z  INFO 146 --- [-1196766417#130] d.h.werkator.build.DockerBuildRunner     : removing 2 stale build container(s)