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

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

Closed
mfvanek opened this issue May 16, 2024 · 0 comments · Fixed by #7524
Closed

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

mfvanek opened this issue May 16, 2024 · 0 comments · Fixed by #7524

Comments

@mfvanek
Copy link

mfvanek commented May 16, 2024

Module

Kafka

Proposal

We faced with the issue while upgrading TC from 1.17.6 to 1.19.8.
Error is

2024-05-15 16:10:18.589 ERROR [example-kotlin-spring-one,,] 541 --- [    Test worker] t.d.a.t.ru/confluentinc/cp-kafka:7.6.1   : Could not start container2860
    com.github.dockerjava.api.exception.InternalServerErrorException: Status 500: {"message":"command terminated with exit code 2"} 

It happens only in CI because in our environment we use k8s to run containers and we don't have permissions to write to the root directory inside a container.
So we need to change a path to testcontainers_start.sh from root to /tmp (like this /tmp/testcontainers_start.sh).

Need to provide a way for overriding property private static final String STARTER_SCRIPT = "/testcontainers_start.sh"; (inheritance, properties file, environment variables - whatever you consider appropriate).

It relates to several containers:

It also make sense for other languages:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant