Sitelet https://github.com/testcontainers/testcontainers-node/issues/1310
Skip to content

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

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

Activity

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

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