Skip to content

Use /tmp for zookeeper.properties and startup script#7524

Merged
eddumelendez merged 4 commits into
testcontainers:mainfrom
kahowell:use-tmp-for-kafka-writes
May 20, 2024
Merged

Use /tmp for zookeeper.properties and startup script#7524
eddumelendez merged 4 commits into
testcontainers:mainfrom
kahowell:use-tmp-for-kafka-writes

Conversation

@kahowell

@kahowell kahowell commented Sep 12, 2023

Copy link
Copy Markdown
Contributor

This aids compatibility when running in more security-constrained environments, such as OpenShift, when using kubedock.

Fixes #8637

This aids compatibility when running in more security-constrained
environments, such as OpenShift, when using kubedock.
@kahowell kahowell requested a review from a team September 12, 2023 19:01
private static final String DEFAULT_INTERNAL_TOPIC_RF = "1";

private static final String STARTER_SCRIPT = "/testcontainers_start.sh";
private static final String STARTER_SCRIPT = "/tmp/testcontainers_start.sh";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Maybe it would be possible to allow for the path to be fully configurable from the outside instead of hard coding it to /tmp ?

@eddumelendez

Copy link
Copy Markdown
Member

Hi, thanks for the PR. I think if we are going to do something like this then it should apply to all modules. No changes required. Will bring this PR to discuss with the team.

Comment thread modules/kafka/src/main/java/org/testcontainers/containers/KafkaContainer.java Outdated
@eddumelendez eddumelendez added this to the next milestone May 20, 2024
@eddumelendez eddumelendez merged commit ced5b72 into testcontainers:main May 20, 2024
@eddumelendez

Copy link
Copy Markdown
Member

Thanks for your contribution, @kahowell !

fokion pushed a commit to fokion/testcontainers-java that referenced this pull request Jan 18, 2025
Fixes testcontainers#8637

---------

Co-authored-by: Eddú Meléndez Gonzales <eddu.melendez@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement]: Add ability to customize a path to testcontainers_start.sh

4 participants