testcontainers / testcontainers/testcontainers-java
SQL Server container improvements regarding licensing
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
From how I understand SQL Server's docker container licensing, there are two things that need to be provided to the docker image:
ACCEPT_EULA=YMSSQL_PID=<your_product_id | edition_name> (default: Developer)
The current approach of having to place an image name in a static file is a bit clunky and doesn't cover the above sufficiently
- I don't want to run SQL Server using a Developer edition license. I prefer the Express Edition. I guess I can use
withEnv("MSSQL_PID", "Express")but it would be nice if I had an enum to choose from with API placed directly onMSSQLServerContainer - The
Db2Containerhas anacceptLicense()method, which I think would be nicer than this file on the classpath. Especially, because I'd like to run integration tests using different images of SQL Server, but from the same Maven project, so I cannot easily reuse this file without a build preprocessing step that writes the image name into the file prior to starting the integration tests.
See:
https://hub.docker.com/_/microsoft-mssql-server#environment-variables
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 Untersuchung von MSSQLServerContainer und Db2Container. Suche anschließend die aktuelle klassenpfadbasierte Image- und Lizenzkonfiguration sowie deren Integrationstests. Die Arbeit ist abgeschlossen, wenn SQL-Server-Nutzer die Produktedition auswählen und die Lizenz über die Container-API akzeptieren können, ohne auf die statische Datei angewiesen zu sein, und wenn Tests das neue Verhalten abdecken.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker, java
- Bereich
- databases, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100