testcontainers / testcontainers/testcontainers-java
Allow default image customization without tags
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 8.7k
- Forks
- 1.9k
- Ø Merge
- 2 T. 17 Std.
- Gemergte PRs (30 T.)
- 9
Beschreibung
I would like the ability to customize the default images used by testcontainers but NOT specify the specific tags used. Therefore, allowing the default tags to continue to be specified by testcontainers.
In my corporate environment, we have an artifactory instance that caches several public repositories (docker.io, quay.io, etc). Our builds generally pull from these caches instead of the public repositories directly.
I want to tell testcontainers to use our caches instead of the public repositories, but I don't want to tell testcontainers which specific tag I want to use. I want to rely on the default tags specified in testcontainers, so I don't have to constantly keep updating the tags used whenever I upgrade testcontainers of various builds.
Currently the default images used by testcontainers can be customized by specifying properties like this:
tinyimage.container.image = alpine:3.5
vncrecorder.container.image = quay.io/testcontainers/vnc-recorder:1.1.0
ambassador.container.image = richnorth/ambassador:latest
compose.container.image = docker/compose:1.8.0
kafka.container.image = confluentinc/cp-kafka
localstack.container.image = localstack/localstack
ryuk.container.image = quay.io/testcontainers/ryuk:0.2.3
However, I would like to be able to specify default images using something like this:
tinyimage.container.image.prefix = docker-io.company.com/alpine
vncrecorder.container.image.prefix = quay-io.company.com/testcontainers/vnc-recorder
ambassador.container.image.prefix = docker-io.company.com/richnorth/ambassador
compose.container.image.prefix = docker-io.company.com/docker/compose
kafka.container.image.prefix = docker-io.company.com/confluentinc/cp-kafka
localstack.container.image.prefix = docker-io.company.com/localstack/localstack
ryuk.container.image.prefix = quay-io.company.com/testcontainers/ryuk
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne mit docs/features/configuration.md und verfolge, wie die dokumentierten Bildeigenschaften für die Standard-Images aufgelöst werden. Füge Unterstützung für Image-Präfixe hinzu, wobei die Standard-Tags erhalten bleiben, und überprüfe, dass die bestehenden vollständigen Image-Overrides weiterhin funktionieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, java
- Bereich
- testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 39/100