testcontainers / testcontainers/testcontainers-java
SQL Server container improvements regarding licensing
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Java
- Estrellas
- 8.7k
- Forks
- 1.9k
- Merge medio
- 2 d 17 h
- PR fusionados (30 d)
- 9
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza inspeccionando MSSQLServerContainer y Db2Container; después, busca la configuración actual de la imagen y la licencia basada en el classpath, así como sus pruebas de integración. El trabajo estará terminado cuando los usuarios de SQL Server puedan seleccionar la edición del producto y aceptar la licencia mediante la API del contenedor sin depender del archivo estático, con pruebas que cubran el nuevo comportamiento.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, java
- Área
- databases, testing
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100