-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mssql-tools dockerfile for alpine linux #405
Comments
I tried to use copy --from to build the images for Alpine Linux in order to minimize image size. But I cannot run sqlcmd in the container. Alpine is a good choice to make a lightweight docker container. But for now, it is more convenient to use Ubuntu. |
Put the code from https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server?view=sql-server-2017#alpine-linux into a script and use |
Interesting approach! |
I was super excited to try out @ravenbluedragon's suggestion, and it almost worked but the link to download the APK is giving me 404, does anyone know how to get the proper link? For reference here's the broken link: |
I found a link that works on this GitHub issue: microsoft/msphpsql#300 (comment) |
Hey @bpourkazemi @jvtrigueros I was able to create a "mssql-tools" customized image using Alpine. You can find the Dockerfile here. Let me know if you have any questions or comments. Cheers, |
@dbamaster that does help! Thanks for sharing :D |
Hello there! I made some improvements, the updated image size is 17 MBs. I also created a dedicated repo for this customized image, will be updating the readme info later next week. Feel free to share your feedback, the goal is to make this image as optimal as possible. Cheers, |
Updatable Latest version on Alpine Linux https://hub.docker.com/r/mrlioncub/mssql-tools (size 7MB) |
Does anyone have the equivalent dockerfile for Alpine Linux? https://github.com/Microsoft/mssql-docker/blob/master/linux/mssql-tools/Dockerfile
These commands are Debian-based
The text was updated successfully, but these errors were encountered: