Skip to content

Commit ea109ed

Browse files
andrewnicolsstronk7
authored andcommitted
Add support for ARM builds of sqlsrv
1 parent 5e62433 commit ea109ed

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

root/tmp/setup/sqlsrv-extension.sh

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,6 @@
22

33
set -e
44

5-
if [[ ${TARGETPLATFORM} != "linux/amd64" ]]; then
6-
echo "sqlsrv extension not available for ${TARGETPLATFORM} architecture, skipping"
7-
exit 0
8-
fi
9-
105
# Packages for build.
116
BUILD_PACKAGES="gnupg unixodbc-dev"
127

@@ -28,12 +23,12 @@ curl https://packages.microsoft.com/config/debian/10/prod.list -o /etc/apt/sourc
2823
apt-get update
2924

3025
echo "Install msodbcsql"
31-
ACCEPT_EULA=Y apt-get install -y msodbcsql17
26+
ACCEPT_EULA=Y apt-get install -y msodbcsql18
3227

3328
ln -fsv /opt/mssql-tools/bin/* /usr/bin
3429

3530
# Need 5.9.0preview1 (or later) for PHP 8.0 support
36-
pecl install sqlsrv-5.10.0
31+
pecl install sqlsrv-5.11.0
3732
docker-php-ext-enable sqlsrv
3833

3934
# Keep our image size down..

0 commit comments

Comments
 (0)