The third way to a schema: a file copied into the container #3

Manually merged
mi merged 1 commits from copy-file-to-container into main 2026-09-11 10:22:32 +02:00
Owner

JDBC init scripts travel over the connection, and jdbc:tc URLs can name
one. The form that does not is withCopyFileToContainer, which puts the
file in /docker-entrypoint-initdb.d and lets the postgres entrypoint run
it — and that needs PUT /containers/{id}/archive, the one endpoint the
other two forms never touch.

Werkdock grew it in 0.7.0. This test is what asked for it, and what
corrected it: the first attempt refused path=/, which is precisely what
Testcontainers sends, with the whole path in the tar entry names.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com

JDBC init scripts travel over the connection, and jdbc:tc URLs can name one. The form that does not is withCopyFileToContainer, which puts the file in /docker-entrypoint-initdb.d and lets the postgres entrypoint run it — and that needs PUT /containers/{id}/archive, the one endpoint the other two forms never touch. Werkdock grew it in 0.7.0. This test is what asked for it, and what corrected it: the first attempt refused path=/, which is precisely what Testcontainers sends, with the whole path in the tar entry names. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
mi added 1 commit 2026-09-11 10:22:27 +02:00
JDBC init scripts travel over the connection, and jdbc:tc URLs can name
one. The form that does not is withCopyFileToContainer, which puts the
file in /docker-entrypoint-initdb.d and lets the postgres entrypoint run
it — and that needs PUT /containers/{id}/archive, the one endpoint the
other two forms never touch.

Werkdock grew it in 0.7.0. This test is what asked for it, and what
corrected it: the first attempt refused path=/, which is precisely what
Testcontainers sends, with the whole path in the tar entry names.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
mi manually merged commit b723f56fd7 into main 2026-09-11 10:22:32 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mi/werkprobe#3