testcontainers / testcontainers/testcontainers-rs

chore(ci): auto-sync Docker Hub images to ghcr.io and switch tests to use them

Open
#883 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
1.1k
Forks
197
PR merge metrics
No merged PRs in 30d

Description

Some of the tests currently pull public images from Docker Hub, which can intermittently hit rate limits and cause workflow failures unrelated to any code changes. To make the test runs more reliable, it would help to mirror the images we use and have the tests pull from those mirrors instead.

Proposed Approach

  1. Add a scheduled GitHub Actions workflow

    • Pull the images used by our tests (e.g., alpine, hello-world, etc.) from Docker Hub
    • Push them to our existing location on ghcr.io using the same tags
      This keeps our mirrored copies updated without manual work.
  2. Update the tests
    Switch the image references to the mirrored versions on ghcr.io so they no longer depend on Docker Hub.

If this approach sounds good, I’m happy to open an initial PR that adds the sync workflow and updates the test image references.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing GitHub Actions workflows and the tests that pull public images such as alpine and hello-world. Review how the repository publishes images to ghcr.io, then update the scheduled sync workflow and test image references. Done means the mirrored tags are refreshed automatically and tests no longer pull these images from Docker Hub.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, github-actions, rust
Domain
ci-cd, devops, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.