DockerBuildRunnerTest

11

tests

0

failures

0

ignored

0.440s

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.046s passed
assembles the exact docker run command (rootful socket, default network) 0.064s passed
builds a missing image from the Dockerfile with the input labels 0.013s passed
exposes git metadata read-only with the werkator dir masked for a worktree workspace 0.039s passed
fails without a configured image 0.003s passed
host network keeps Testcontainers on localhost without add-host 0.136s passed
mounts no git metadata when the workspace is not a worktree 0.016s passed
prepares the gradle cache volume once but removes the container before every command 0.019s passed
removes stale labelled build containers once, before the first docker build 0.020s passed
skips the image build when the build-inputs label still matches 0.018s passed
without a docker socket the container runs without socket mount as root 0.066s passed

Standard output

Creating nstance of class de.hoennig.werkator.build.DockerBuildRunnerTest
2026-09-03T10:10:59.907Z  INFO 144 --- [-1484176827#127] d.h.werkator.build.DockerBuildRunner     : building Docker image build-env:latest from Dockerfile
2026-09-03T10:10:59.966Z  INFO 144 --- [-1484176827#130] d.h.werkator.build.DockerBuildRunner     : removing 2 stale build container(s)