Commit 087641a
committed
Copy files before starting container
Move the copy-to-container step before containerStart() so files configured with
withCopyFilesToContainer(), withCopyDirectoriesToContainer(), or
withCopyContentToContainer() are available when the container entrypoint starts.
This avoids races for images that read configuration immediately on startup, such
as Caddy loading /etc/caddy/Caddyfile before the test-provided file has been
copied into the container.1 parent 75bca05 commit 087641a
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | | - | |
342 | | - | |
343 | 341 | | |
344 | 342 | | |
345 | 343 | | |
346 | 344 | | |
| 345 | + | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
0 commit comments