dbcli / dbcli/mssql-cli

Publish mssql-cli on Alpine

Open
#417 3 comments 0 reactions 0 assignees View on GitHub
area: packaging
Dominant language
Python
Stars
1.4k
Forks
191
PR merge metrics
No merged PRs in 30d

Description

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"

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing `pip3 install mssql-cli` and running `mssql-cli` in an `alpine:3.11.3` container, checking the reported `sqltoolsclient` attribute error. Inspect the installed `mssqlcli/mssqlclirc` path and the available `Microsoft.SqlTools.ServiceLayer-rhel-x64-netcoreapp2.2.tar.gz` referenced in the report, alongside issue #247. Done means mssql-cli installs and starts successfully on Alpine without manually creating `mssqlclirc` or substituting an archive.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, linux, python
Domain
build-system, cli, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.