Skip to content

Copy files before starting container#70

Open
nightio wants to merge 1 commit into
testcontainers:mainfrom
nightio:copy-order-change
Open

Copy files before starting container#70
nightio wants to merge 1 commit into
testcontainers:mainfrom
nightio:copy-order-change

Conversation

@nightio

@nightio nightio commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

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.

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.
@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for testcontainers-php ready!

Name Link
🔨 Latest commit 087641a
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-php/deploys/6a468d7915522e0007e17222
😎 Deploy Preview https://deploy-preview-70--testcontainers-php.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant