From d64a91c6ee838b2f5d5f69ea52e60834859da5f3 Mon Sep 17 00:00:00 2001 From: Nicholas S Date: Thu, 4 Aug 2022 15:33:19 -0400 Subject: [PATCH 1/3] Fix password in Readme --- docker-compose-services/sqlsrv/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose-services/sqlsrv/README.md b/docker-compose-services/sqlsrv/README.md index c3117d10..51e6672d 100644 --- a/docker-compose-services/sqlsrv/README.md +++ b/docker-compose-services/sqlsrv/README.md @@ -16,7 +16,7 @@ Connect to `sqlsrv` host/db server from within the web container with: ``` Host: `ddev-projectname-sqlsrv` User: sa -Password: password! +Password: Password12! Database: master ``` From 50757ba9da8d1fad86016fcac343063f0391b6ac Mon Sep 17 00:00:00 2001 From: Nicholas S Date: Thu, 4 Aug 2022 15:34:59 -0400 Subject: [PATCH 2/3] Remove phpize error --- docker-compose-services/sqlsrv/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose-services/sqlsrv/Dockerfile b/docker-compose-services/sqlsrv/Dockerfile index bbc5f8f3..27300853 100644 --- a/docker-compose-services/sqlsrv/Dockerfile +++ b/docker-compose-services/sqlsrv/Dockerfile @@ -10,7 +10,7 @@ RUN curl -sSL -o /etc/apt/sources.list.d/mssql-release.list https://packages.mic RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests build-essential dialog php-pear php-dev unixodbc-dev locales -RUN ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y msodbcsql18 mssql-tools +RUN ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y msodbcsql18 mssql-tools php-dev # Change the PHP version to what you want. It is currently set to version 8.0. RUN pecl channel-update pecl.php.net From ed31549f361641a0edd9cd047f784a9d347a9e0f Mon Sep 17 00:00:00 2001 From: Nicholas S Date: Thu, 4 Aug 2022 16:06:38 -0400 Subject: [PATCH 3/3] I can't get this docker file to work in anything other than 7.4 --- docker-compose-services/sqlsrv/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker-compose-services/sqlsrv/Dockerfile b/docker-compose-services/sqlsrv/Dockerfile index 27300853..b1ae2e02 100644 --- a/docker-compose-services/sqlsrv/Dockerfile +++ b/docker-compose-services/sqlsrv/Dockerfile @@ -10,14 +10,14 @@ RUN curl -sSL -o /etc/apt/sources.list.d/mssql-release.list https://packages.mic RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -o Dpkg::Options::="--force-confold" --no-install-recommends --no-install-suggests build-essential dialog php-pear php-dev unixodbc-dev locales -RUN ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y msodbcsql18 mssql-tools php-dev +RUN ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y msodbcsql18 mssql-tools php7.4-dev -# Change the PHP version to what you want. It is currently set to version 8.0. +# Change the PHP version to what you want. It is currently set to version 7.4. RUN pecl channel-update pecl.php.net -RUN pecl -d php_suffix=8.0 install sqlsrv -RUN pecl -d php_suffix=8.0 install pdo_sqlsrv +RUN pecl -d php_suffix=7.4 install sqlsrv +RUN pecl -d php_suffix=7.4 install pdo_sqlsrv -RUN echo 'extension=sqlsrv.so' >> "/etc/php/8.0/mods-available/sqlsrv.ini" -RUN echo 'extension=pdo_sqlsrv.so' >> "/etc/php/8.0/mods-available/pdo_sqlsrv.ini" +RUN echo 'extension=sqlsrv.so' >> "/etc/php/7.4/mods-available/sqlsrv.ini" +RUN echo 'extension=pdo_sqlsrv.so' >> "/etc/php/7.4/mods-available/pdo_sqlsrv.ini" RUN phpenmod sqlsrv pdo_sqlsrv