Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(redpanda): temporary file use #2884

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

cavus700
Copy link
Contributor

What does this PR do?

The Redpanda container does not write files to the local filesystem anymore. It uses io.Reader now to copy files to the container.

Why is it important?

On some environment it is not possible to write the startup files to the local filesystem and mount them into the container. For example in CI/CD environments where docker in docker is used. The files are written to the filesystem of container A. Then container A tries to start the redpanda container and passes the mount path to the newly created container. The redpanda container tries to mount the files from the host filesystem but cannot find them because they were written inside container A.

How to test this PR

Just run the container tests. Everything should be working like before.

@cavus700 cavus700 requested a review from a team as a code owner November 11, 2024 06:54
Copy link

netlify bot commented Nov 11, 2024

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 63bbd4e
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/67333cc4e9f94c000862d863
😎 Deploy Preview https://deploy-preview-2884--testcontainers-go.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 site configuration.

Copy link
Collaborator

@stevenh stevenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the PR!

@stevenh stevenh changed the title Do not write files to file system fix(redpanda): temporary file use Nov 11, 2024
@stevenh stevenh merged commit 0dfebc8 into testcontainers:main Nov 12, 2024
122 checks passed
@mdelapenya mdelapenya self-assigned this Nov 19, 2024
@mdelapenya mdelapenya added the bug An issue with the library label Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue with the library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants