Publish mssql-cli on Alpine
- Ngôn ngữ chính
- Python
- Star
- 1.4k
- Fork
- 191
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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"
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện `pip3 install mssql-cli` và chạy `mssql-cli` trong một container `alpine:3.11.3`, kiểm tra lỗi thuộc tính `sqltoolsclient` đã được báo cáo. Kiểm tra đường dẫn đã cài đặt của `mssqlcli/mssqlclirc` và `Microsoft.SqlTools.ServiceLayer-rhel-x64-netcoreapp2.2.tar.gz` hiện có được đề cập trong báo cáo, cùng với issue #247. Được xem là hoàn tất khi mssql-cli cài đặt và khởi động thành công trên Alpine mà không cần tạo thủ công `mssqlclirc` hoặc thay thế một archive.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- docker, linux, python
- Lĩnh vực
- build-system, cli, databases
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 30/100