You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
Module
Kafka
Proposal
We faced with the issue while upgrading TC from 1.17.6 to 1.19.8.
Error is
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:
testcontainers-java/modules/kafka/src/main/java/org/testcontainers/kafka/KafkaContainer.java
Line 27 in 18ea976
testcontainers-java/modules/kafka/src/main/java/org/testcontainers/containers/KafkaContainer.java
Line 42 in 18ea976
testcontainers-java/modules/mongodb/src/main/java/org/testcontainers/containers/MongoDBContainer.java
Line 41 in 18ea976
It also make sense for other languages:
The text was updated successfully, but these errors were encountered: