testcontainers / testcontainers/testcontainers-java
Expose Network used by docker-compose
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 number of containers that I need to spin up to do a system test. I need to add another container which is external to the docker-compose file, and this needs to connect to the network thats already in use.
I can't get the network from the DockerComposeContainer. Nor can I access the ambassadorContainer as it is private. Neither is there a way to "add" the extra container into the DockerComposeContainer. I need one of these two options!
As the GenericContainer allows me to call getNetwork(), I propose we add the same to the DockerComposeContainer.
Could I have some feedback before I head off to implement the change?
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 con DockerComposeContainer e confronta le sue API accessibili per container e rete con GenericContainer.getNetwork(). Determina come esporre la rete gestita da Compose a un container esterno, quindi verifica che l’API pubblica risultante supporti il caso d’uso descritto nell’issue.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, docker-compose, java
- Ambito
- testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100