Skip to content

RYUK_CONTAINER_IMAGE not responsive to .env or process.env #1310

@MaxVanDeursen

Description

@MaxVanDeursen

Expected Behaviour
The test fails, because the set container cannot be found.
...

Actual Behaviour
testcontainers/ryuk:0.14.0 is used for the Ryuk container
...

Cause

In reaper.ts, the REAPER_IMAGE is loaded immediately, removing the possibility to dynamically set the image through dotenv or process.env
...

Steps to Reproduce

  1. Use process.env.RYUK_CONTAINER_IMAGE = "nonexistentimageforreproduction"
  2. Start an arbitrary Generic container.

Environment Information

  • Testcontainers version: 11.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions