forked from moodlehq/moodle-php-apache
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
With sqlsrv latest 5.2-RC1 drivers and MSODBC 17 preview it seems that it's possible to make the extension to work under Debian 9. it requires to install MSODBC 13, uninstall it and then install MSODBC 17, but seems to be working ok. oci also requires some little changes, have been updated to 12.2 libraries and is using proper ENV for both interactive and non-interactive sessions. and, finally, what I've been unable to fix/make work is solr. it seems that still is not ready, so I've disabled it for now. This will help fixing moodlehq#16.
- Loading branch information
Showing
6 changed files
with
67 additions
and
31 deletions.
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
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 |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
|
||
set -e | ||
|
||
echo "Installing apt depdencies" | ||
echo "Installing apt dependencies" | ||
|
||
BUILD_PACKAGES="gettext libcurl4-openssl-dev libpq-dev libmysqlclient-dev libldap2-dev libxslt-dev \ | ||
BUILD_PACKAGES="gettext libcurl4-openssl-dev libpq-dev default-libmysqlclient-dev libldap2-dev libxslt-dev \ | ||
libxml2-dev libicu-dev libfreetype6-dev libjpeg62-turbo-dev libmemcached-dev \ | ||
zlib1g-dev libpng12-dev unixodbc-dev" | ||
zlib1g-dev libpng-dev unixodbc-dev gnupg2" | ||
|
||
LIBS="locales libaio1 libcurl3 libgss3 libicu52 libmysqlclient18 libpq5 libmemcached11 libmemcachedutil2 libldap-2.4-2 libxml2 libxslt1.1 unixodbc libmcrypt-dev" | ||
LIBS="locales libaio1 libcurl3 libgss3 libicu57 libpq5 libmemcached11 libmemcachedutil2 libldap-2.4-2 libxml2 libxslt1.1 unixodbc libmcrypt-dev" | ||
|
||
apt-get update | ||
apt-get install -y --no-install-recommends $BUILD_PACKAGES $LIBS unzip ghostscript locales apt-transport-https | ||
|
@@ -34,19 +34,14 @@ docker-php-ext-install -j$(nproc) gd | |
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ | ||
docker-php-ext-install -j$(nproc) ldap | ||
|
||
pecl install solr memcached redis apcu igbinary | ||
docker-php-ext-enable solr memcached redis apcu igbinary | ||
pecl install memcached redis apcu igbinary | ||
docker-php-ext-enable memcached redis apcu igbinary | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
stronk7
Author
Owner
|
||
|
||
echo 'apc.enable_cli = On' >> /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini | ||
|
||
# Install Microsoft depdencises for sqlsrv | ||
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | ||
curl https://packages.microsoft.com/config/debian/8/prod.list -o /etc/apt/sources.list.d/mssql-release.list | ||
apt-get update | ||
ACCEPT_EULA=Y apt-get install -y msodbcsql | ||
|
||
pecl install sqlsrv-4.3.0 | ||
docker-php-ext-enable sqlsrv | ||
# Go for sqlsrv extension now (kept apart for clarity, still need to be run here | ||
# before some build packages are deleted. | ||
/tmp/setup/sqlsrv-extension.sh | ||
|
||
# Keep our image size down.. | ||
pecl clear-cache | ||
|
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,33 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
# Install Microsoft dependencies for sqlsrv | ||
# Debian 9 requires ODBC driver 17, still not package available in repos, so followed this | ||
# https://github.com/Microsoft/msphpsql/wiki/Install-and-configuration#user-content-odbc-17-linux-installation | ||
echo "Downloading sqlsrv files" | ||
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | ||
curl https://packages.microsoft.com/config/debian/8/prod.list -o /etc/apt/sources.list.d/mssql-release.list | ||
apt-get update | ||
|
||
echo "Install msodbcsql" | ||
ACCEPT_EULA=Y apt-get install -y msodbcsql | ||
|
||
# now remove ODBC driver 13.1, then download and install 17 from Github | ||
apt-get purge -y msodbcsql | ||
|
||
curl https://raw.githubusercontent.com/Microsoft/msphpsql/dev/ODBC%2017%20binaries%20preview/Debian%209/msodbcsql_17.0.0.5-1_amd64.deb \ | ||
-o /tmp/msodbcsql_17.0.0.5-1_amd64.deb | ||
curl https://raw.githubusercontent.com/Microsoft/msphpsql/dev/ODBC%2017%20binaries%20preview/Debian%209/mssql-tools_17.0.0.5-1_amd64.deb \ | ||
-o /tmp/mssql-tools_17.0.0.5-1_amd64.deb | ||
|
||
ACCEPT_EULA=Y dpkg -i /tmp/msodbcsql_17.0.0.5-1_amd64.deb | ||
ACCEPT_EULA=Y dpkg -i /tmp/mssql-tools_17.0.0.5-1_amd64.deb | ||
|
||
rm /tmp/msodbcsql_17.0.0.5-1_amd64.deb | ||
rm /tmp/mssql-tools_17.0.0.5-1_amd64.deb | ||
|
||
ln -fsv /opt/mssql-tools/bin/* /usr/bin | ||
|
||
pecl install sqlsrv-5.2.0RC1 | ||
docker-php-ext-enable sqlsrv |
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
Hi @stronk7,
solr 2.4.0 tarball doesn't contain the fixes required for 7.2, why not adding a temporary script to compile it from git e.g
?
/tmp/setup/solr-extension.sh
should look like the commands below just tested on the same base image:Would you like me to push an extra commit on top of yours?
TIA,
Matteo