dbcli / dbcli/mssql-cli

Publish mssql-cli on Alpine

オープン
#417 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
area: packaging
主要言語
Python
スター
1.4k
フォーク
191
PR マージ指標
30日以内にマージされた PR はありません

説明

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"

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず、`pip3 install mssql-cli` を再現し、`alpine:3.11.3` コンテナーで `mssql-cli` を実行して、報告されている `sqltoolsclient` 属性エラーを確認します。インストールされた `mssqlcli/mssqlclirc` のパスと、報告で参照されている利用可能な `Microsoft.SqlTools.ServiceLayer-rhel-x64-netcoreapp2.2.tar.gz` を、issue #247 と併せて調査します。mssql-cli が Alpine にインストールされ、`mssqlclirc` を手動で作成したりアーカイブを置き換えたりせずに正常に起動すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
docker, linux, python
領域
build-system, cli, databases
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。