testcontainers / testcontainers/testcontainers-java
Ability to use external resources instead of Docker depending on system or environment property
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 have faced with following issue. We use Testcontainers for our project, but on some laptops we do not have permissions to run Docker. Therefore we can't build the project and run all tests.
I have fixed this issue using Junit5 extension. I check system or environment property e.g. (mvn -Dhost=129.16.1.1). If this property does not exists, then I use Testcontainsers out of the box. Otherwise, I use instances that already deployed in given host.
This helps us run tests normally e.g. on Jenkins. By default if property host is not set. Or on laptop user can set up e.g. AWS EC2 instance with docker with required resources and use that remote docker to run application.
I think this could be useful feature for the whole project and offer to make me able to do a PullRequest instead of create my own smal Junit5 plugin and deploy it to the maven central.
Please, if you interested in this feature, I am ready to do it.
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 der vorgeschlagenen JUnit5-Erweiterung und dem normalen Docker-Nutzungspfad von Testcontainers. Lege fest, wie eine Host-Property des Systems oder der Umgebung bereits bereitgestellte Ressourcen auswählt und dabei das standardmäßige Docker-Verhalten beibehält. Als abgeschlossen sollte eine vereinbarte Konfigurationsvereinbarung sowie eine Abdeckung sowohl für die Standardausführung als auch für die Ausführung mit Remote-Host vorhanden sein.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, java
- Bereich
- devops, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100