testcontainers / testcontainers/testcontainers-java
Docker Compose support doesn't see local Docker images
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 have a project where I've attempted to do the following:
- Build an image of the project's application, locally (without pushing into a registry);
- Set up an integration test suite that runs after the image has been built;
- Have a test case in that suite that uses TestContainer's Compose support to launch a composition that uses the image from step 1.
This however doesn't work, because TestContainers runs Compose inside a container, and it evidently doesn't see the image that's locally built on step 1.
Another symptom of this same problem is that the Compose container, every time it runs, pulls public images afresh from Docker Hub even though they are locally cached on the Docker host.
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
L’issue non indica file sorgente né test. Inizia riproducendo il flusso di supporto di Compose con un’immagine compilata localmente e un’immagine di Docker Hub nella cache, quindi traccia come viene avviato il container Compose. Il lavoro è completato quando Compose può usare immagini dell’host locale e non esegue inutilmente il pull di immagini già disponibili.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, docker-compose, java
- Ambito
- devops, testing
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100