Giter VIP home page Giter VIP logo

Comments (4)

f3l1x avatar f3l1x commented on August 19, 2024

Hi @vladimirbuskin. pdo_sqlsrv is not bundled in now-php at this moment. Only extension is needed or any other files?

from php.

f3l1x avatar f3l1x commented on August 19, 2024

Ping @vladimirbuskin.

from php.

vladimirbuskin avatar vladimirbuskin commented on August 19, 2024

Hello @f3l1x sorry, i was looking for an ability to use it, but people in my organization can not understand it, and customers want to have something which can be installed on their servers, so i was just digging. Installing that sql server driver, is pretty time space big task, it requires a lot of dependencies in my DockerFile, i am not sure if all those are installed just for compilation or used, didn't try it.
Can provide part of the Dockerfile if will help.

RUN apt-get update \
    # microsoft key and 
    && apt-get install -y --no-install-recommends gnupg2 \
    && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
    && curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list \
    && apt-get update \
    && apt-get install -y --no-install-recommends \
    # to make "apt-key add" command work
    gnupg2 \
    # to unzip
    unzip \
    # to get jasperserver deps in composer
    git \ 
    # unix odbc, required for pdo_sqlsrv
    unixodbc-dev msodbcsql17 \
    # deps for php extensions
    libicu-dev \
    libpq-dev \
    libxml2-dev \
    zlib1g-dev \
    libpng-dev \
    libjpeg-dev \
    libonig-dev \
    libzip-dev \
    libfreetype6-dev \
    curl\
    pkg-config \
    patch\
    # nano to connect to container to debug
    nano \
    # pdo_sqlsrv
    && pecl install sqlsrv pdo_sqlsrv xdebug \
    && docker-php-ext-enable sqlsrv pdo_sqlsrv xdebug \

from php.

f3l1x avatar f3l1x commented on August 19, 2024

Thanks @vladimirbuskin. I think it's out of our limits. I mean lambda limits in Vercel. Microsoft sqlserver seems like a big dependency and it might reach our size (50mb) limit. Quite frankly, we can't use pdo_sqlsrv extension at this time.

from php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.