-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Use /tmp for zookeeper.properties and startup script #7524
Use /tmp for zookeeper.properties and startup script #7524
Conversation
This aids compatibility when running in more security-constrained environments, such as OpenShift, when using kubedock.
@@ -37,7 +37,7 @@ public class KafkaContainer extends GenericContainer<KafkaContainer> { | |||
|
|||
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"; |
There was a problem hiding this comment.
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
?
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. |
modules/kafka/src/main/java/org/testcontainers/containers/KafkaContainer.java
Outdated
Show resolved
Hide resolved
Thanks for your contribution, @kahowell ! |
This aids compatibility when running in more security-constrained environments, such as OpenShift, when using kubedock.
Fixes #8637