Skip to content

Commit 43ec913

Browse files
committed
Prevent the arm64 buster images to build the sqlsrv extension
Only bullseye has support for sqlsrv on arm64, so we need to stop building the extension in this branch (for arm64). - buster: https://packages.microsoft.com/debian/10/prod/pool/main/m/msodbcsql18/ - bullseye: https://packages.microsoft.com/debian/11/prod/pool/main/m/msodbcsql18/
1 parent ea109ed commit 43ec913

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

root/tmp/setup/sqlsrv-extension.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
set -e
44

5+
# Debian buster (10) haven't got the arm64 packages, it seems, see:
6+
# - buster: https://packages.microsoft.com/debian/10/prod/pool/main/m/msodbcsql18/
7+
# So we won't build the extension for buster (10) images on arm64.
8+
if [[ ${TARGETPLATFORM} != "linux/amd64" ]]; then
9+
echo "sqlsrv extension not available for ${TARGETPLATFORM} architecture, skipping"
10+
exit 0
11+
fi
12+
513
# Packages for build.
614
BUILD_PACKAGES="gnupg unixodbc-dev"
715

0 commit comments

Comments
 (0)