testcontainers / testcontainers/testcontainers-java

Use of links between containers should be deprecated

Open
#465 17 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

resolution/acknowledged
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

As discussed in #463, docker networks seem mature enough to use, and links are officially not recommended any more.

We'd like to deprecate use of links; off the top of my head I believe we ought to do the following things:

  • Obviously, mark the container addLink method as deprecated with a clear comment
  • Links aren't currently documented very well, but update the docs with a clear enough description of the networking support, so that ad-hoc linking can be done easily by users
  • Modify Webdriver VNC recorder sidecar container to remove use of links
  • Modify Docker Compose support; can we remove use of the ambassador container now?

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 tracing the Docker Compose support and its ambassador container usage, then inspect the related tests and current networking behavior. Determine whether the ambassador can be removed without breaking Compose-based tests; done means links are no longer required there and the existing Compose support remains covered by passing tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, docker-compose, java
Domain
devops, infrastructure, testing
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.