Publish mssql-cli on Alpine
- Lenguaje dominante
- Python
- Estrellas
- 1.4k
- Forks
- 191
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I just installed mssql-cli via "pip3 install mssql-cli" by Dockerfile on a docker image based on alpine:3.11.3. I got version 0.17.3. Installation did not complain about anything (downloaded mssqlcli-1.0.4.tar.gz)
About python: /usr/bin/python is symlinked to python3.
Dependencies icu-libs and libunwind are installed one step before via apk
I had to manually create the file "/usr/lib/python3.8/site-packages/mssqlcli/mssqlclirc" and fill it with the content from this repo, since mssql-cli would not work without even if I give another with the --mssqlclirc option. So this was tackled.
But when I run mssql-cli now in the container, it tells me "'MssqlCli' object has no attribute 'sqltoolsclient'". So as in Issue #247, but not after installation from git.
The solution from #247 did not work, since the mentioned file does no longer exist and when I download the one file existing (Microsoft.SqlTools.ServiceLayer-rhel-x64-netcoreapp2.2.tar.gz) tar tells me it is not an archive (independent from tar -xzf or gunzip and then tar -xf): "tar: invalid tar magic"
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Línea de trabajo
Comienza reproduciendo `pip3 install mssql-cli` y ejecutando `mssql-cli` en un contenedor `alpine:3.11.3`, comprobando el error de atributo `sqltoolsclient` indicado. Inspecciona la ruta instalada de `mssqlcli/mssqlclirc` y el `Microsoft.SqlTools.ServiceLayer-rhel-x64-netcoreapp2.2.tar.gz` disponible al que se hace referencia en el informe, junto con el issue #247. Se considera terminado cuando mssql-cli se instala y se inicia correctamente en Alpine sin crear manualmente `mssqlclirc` ni sustituir un archivo comprimido.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- docker, linux, python
- Área
- build-system, cli, databases
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100