Skip to content

Use /tmp for Kafka startup script#1302

Merged
cristianrgreco merged 1 commit intomainfrom
codex/issue-1301-kafka-tmp-script
Apr 20, 2026
Merged

Use /tmp for Kafka startup script#1302
cristianrgreco merged 1 commit intomainfrom
codex/issue-1301-kafka-tmp-script

Conversation

@cristianrgreco
Copy link
Copy Markdown
Collaborator

Summary

  • move the Kafka startup script from /testcontainers_start.sh to /tmp/testcontainers_start.sh
  • add a Kafka integration assertion that verifies the script is copied to /tmp

Why

KubeDock/rootless environments can reject writes to the container root filesystem. The Kafka module currently writes its generated startup script to /, so startup can fail before the script is ever executed. Using /tmp avoids that root-level write requirement.

Impact

This is a backward-compatible bug fix for Kafka container startup in restricted runtimes.

Verification

  • npm run format
  • npm run lint
  • npm test -- packages/modules/kafka/src/kafka-container-7.test.ts

Closes #1301

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 20, 2026

Deploy Preview for testcontainers-node ready!

Name Link
🔨 Latest commit 7434098
🔍 Latest deploy log https://app.netlify.com/projects/testcontainers-node/deploys/69e63818093a730008a23325
😎 Deploy Preview https://deploy-preview-1302--testcontainers-node.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.

@cristianrgreco cristianrgreco added bug Something isn't working patch Backward compatible bug fix labels Apr 20, 2026 — with ChatGPT Codex Connector
@cristianrgreco cristianrgreco marked this pull request as ready for review April 20, 2026 14:31
@cristianrgreco cristianrgreco merged commit 303430f into main Apr 20, 2026
20 checks passed
@cristianrgreco cristianrgreco deleted the codex/issue-1301-kafka-tmp-script branch April 20, 2026 16:07
@cristianrgreco cristianrgreco changed the title Use /tmp for Kafka startup script Use /tmp for Kafka startup script Apr 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working patch Backward compatible bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kafka container is unable to svae script into root filder

1 participant