Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion layers/sqlsrv/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ ENV LD_LIBRARY_PATH=/usr/lib:/usr/lib64:$LD_LIBRARY_PATH
RUN yum -y install unixODBC-devel-2.3.1-14.amzn2.x86_64

RUN curl https://packages.microsoft.com/config/rhel/7/prod.repo > /etc/yum.repos.d/mssql-release.repo
RUN ACCEPT_EULA=Y yum -y install msodbcsql17-17.10.1.1-1.x86_64
RUN ACCEPT_EULA=Y yum -y install msodbcsql17-17.10.6.1-1.x86_64

RUN if [ "$PHP_VERSION" = "80" ]; \
then SQLSRV_VERSION=5.11.1 ; \
elif [ "$PHP_VERSION" = "84" ]; \
then SQLSRV_VERSION=5.13.0beta1 ; \
else SQLSRV_VERSION=5.12.0 ; \
fi ; \
pecl install sqlsrv-${SQLSRV_VERSION} && \
Expand Down
Loading