testcontainers / testcontainers/testcontainers-java
SQL Server container improvements regarding licensing
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 8.7k
- Fork
- 1.9k
- Merge medio
- 2g 17h
- PR unite (30g)
- 9
Descrizione
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
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 esaminando MSSQLServerContainer e Db2Container, quindi individua l’attuale configurazione dell’immagine e della licenza basata sul classpath e i relativi test di integrazione. Il lavoro sarà completato quando gli utenti di SQL Server potranno selezionare l’edizione del prodotto e accettare la licenza tramite l’API del container senza dipendere dal file statico, con test che coprano il nuovo comportamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- docker, java
- Ambito
- databases, testing
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100