testcontainers / testcontainers/testcontainers-java
Allow default image customization without tags
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 1.9k
- Merge medio
- 2g 17h
- PR unite (30g)
- 9
Descrizione
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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia da docs/features/configuration.md e traccia come vengono risolte le proprietà delle immagini documentate per le immagini predefinite. Aggiungi il supporto per i prefissi delle immagini mantenendo i tag predefiniti e verifica che gli override esistenti per l’immagine completa continuino a funzionare.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, java
- Ambito
- testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 39/100