DockerBuildRunnerTest

11

tests

0

failures

0

ignored

0.278s

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.039s passed
assembles the exact docker run command (rootful socket, default network) 0.107s passed
builds a missing image from the Dockerfile with the input labels 0.017s passed
exposes git metadata read-only with the werkator dir masked for a worktree workspace 0.029s passed
fails without a configured image 0.004s passed
host network keeps Testcontainers on localhost without add-host 0.011s passed
mounts no git metadata when the workspace is not a worktree 0.009s 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.014s passed
skips the image build when the build-inputs label still matches 0.010s passed
without a docker socket the container runs without socket mount as root 0.019s passed

Standard output

Creating nstance of class de.hoennig.werkator.build.DockerBuildRunnerTest
2026-09-03T16:01:37.939Z  INFO 144 --- [-1717587567#132] d.h.werkator.build.DockerBuildRunner     : building Docker image build-env:latest from Dockerfile
2026-09-03T16:01:37.984Z  INFO 144 --- [-1717587567#135] d.h.werkator.build.DockerBuildRunner     : removing 2 stale build container(s)