Skip to content

support alternative image repositories such as public.ecr.aws #4219

@SingingBush

Description

@SingingBush

Now that docker hub is limiting the amount of calls that can be made it's getting more common for developers to use images from alternative repositories such as public.ecr.aws (see images in https://gallery.ecr.aws). I was hoping to use the Bitnami MySQL image from there so that the following:

new MySQLContainer("mysql:5.7")
            .withUsername("username")
            .withPassword("pass")
            .withDatabaseName("testdb");

get replaces with:

new MySQLContainer("public.ecr.aws/bitnami/mysql:5.7")
            .withUsername("username")
            .withPassword("pass")
            .withDatabaseName("testdb");

unfortunately org.testcontainers.containers.MySQLContainer won't work with this image, even though it's similar in configuration and could potentially be used instead of the image on docker hub.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions