You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add sqlanywhere php extension (and driver) to connect to sqlanywhere servers. Comes with acceptance of a license agreement, so I'm not sure how this should be done with php-extension-installer.
The extension requires a client driver to be installed too. I'm not sure if php-extension-installer need to install it, because the client could be a different version.
We usually run the following with version sqlanywhere client version 17:
# multi staged build
FROM ... AS sqlanywhere
ENV SQLANYWHERE_PHP="https://s3.amazonaws.com/sqlanywhere/drivers/php/sasql_php.zip" \
SQL_ANYWHERE_CLIENT="http://d5d4ifzqzkhwt.cloudfront.net/sqla17client/sqla17_client_linux_x86x64.tar.gz"
RUN apt update && apt install -yq zip
RUN curl -s ${SQLANYWHERE_PHP} -o sasql_php.zip && unzip sasql_php.zip -d /tmp/sasql_php
RUN curl -sL ${SQL_ANYWHERE_CLIENT} | tar xz -C /tmp
RUN cd /tmp/sasql_php && phpize && ./configure && make
RUN cd /tmp/client17011 && ./setup -install sqlany_client64 -silent -nogui -I_accept_the_license_agreement
# the app build
FROM php
ENV LD_LIBRARY_PATH="/opt/sqlanywhere17/lib64" \
SQLANY17="/opt/sqlanywhere17"
COPY --from=sqlanywhere /opt /opt
COPY --from=sqlanywhere /tmp/sasql_php/modules/sqlanywhere.so /usr/local/lib/php/extensions/sqlanywhere.so
RUN echo "extension=/usr/local/lib/php/extensions/sqlanywhere.so" > /usr/local/etc/php/conf.d/sqlanywhere.ini
The text was updated successfully, but these errors were encountered:
Add sqlanywhere php extension (and driver) to connect to sqlanywhere servers. Comes with acceptance of a license agreement, so I'm not sure how this should be done with php-extension-installer.
The extension requires a client driver to be installed too. I'm not sure if php-extension-installer need to install it, because the client could be a different version.
We usually run the following with version sqlanywhere client version 17:
The text was updated successfully, but these errors were encountered: