Skip to content

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

@mfvanek

Description

@mfvanek

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:

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions