-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
case $(uname -m) in | ||
x86_64) architecture="amd64" ;; | ||
arm64) architecture="arm64" ;; | ||
*) architecture="unsupported" ;; | ||
esac | ||
if [[ "unsupported" == "$architecture" ]]; | ||
then | ||
echo "Alpine architecture $(uname -m) is not currently supported."; | ||
exit; | ||
fi | ||
|
||
#Download the desired package(s) | ||
curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/msodbcsql18_18.3.2.1-1_$architecture.apk | ||
curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/mssql-tools18_18.3.1.1-1_$architecture.apk | ||
|
||
#(Optional) Verify signature, if 'gpg' is missing install it using 'apk add gnupg': | ||
curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/msodbcsql18_18.3.2.1-1_$architecture.sig | ||
curl -O https://download.microsoft.com/download/3/5/5/355d7943-a338-41a7-858d-53b259ea33f5/mssql-tools18_18.3.1.1-1_$architecture.sig | ||
|
||
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --import - | ||
gpg --verify msodbcsql18_18.3.2.1-1_$architecture.sig msodbcsql18_18.3.2.1-1_$architecture.apk | ||
gpg --verify mssql-tools18_18.3.1.1-1_$architecture.sig mssql-tools18_18.3.1.1-1_$architecture.apk | ||
|
||
#Install the package(s) | ||
sudo apk add --allow-untrusted msodbcsql18_18.3.2.1-1_$architecture.apk | ||
sudo apk add --allow-untrusted mssql-tools18_18.3.1.1-1_$architecture.apk |