testcontainers / testcontainers/testcontainers-java

Container reuse across r2dbc:tc and jdbc:tc URLs

Open
#4,473 7 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Could you please enable container reusage across r2dbc and jdbc urls?

Use case (in Spring Boot):

spring:
  r2dbc:
    url: r2dbc:tc:postgresql:///test?TC_IMAGE_TAG=12-alpine
  flyway:
    url: jdbc:tc:postgresql:12-alpine:///test

https://github.com/testcontainers/testcontainers-java/issues/4282

https://github.com/spring-projects/spring-boot/issues/28076

https://github.com/flyway/flyway/issues/3282

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 with the r2dbc:tc and jdbc:tc URL formats shown in the Spring Boot example, and trace how each URL identifies and creates its PostgreSQL container. Done means the two URLs reuse one container for the same database configuration, while the linked Testcontainers, Spring Boot, and Flyway issues provide compatibility context.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
databases, 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.