DockerBuildRunnerTest

11

tests

0

failures

0

ignored

0.608s

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

Standard output

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