Skip to content

Commit 1958cfd

Browse files
authored
remove ODBC preview binaries (#728)
* remove ODBC preview binaries * update to public odbc 17
1 parent ba66341 commit 1958cfd

16 files changed

+8
-13
lines changed

Dockerfile-msphpsql

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ RUN locale-gen en_US
3737
RUN locale-gen en_US.UTF-8
3838
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
3939

40+
#install ODBC driver
41+
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
42+
RUN curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
43+
44+
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools
45+
ENV PATH="/opt/mssql-tools/bin:${PATH}"
46+
4047
#install coveralls
4148
RUN pip install --upgrade pip && pip install cpp-coveralls
4249

@@ -45,14 +52,8 @@ RUN pip install --upgrade pip && pip install cpp-coveralls
4552
#another option is to copy source to build directory on image
4653
RUN mkdir -p $PHPSQLDIR
4754
COPY . $PHPSQLDIR
48-
49-
#install ODBC 17 preview driver
50-
WORKDIR $PHPSQLDIR
51-
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && ACCEPT_EULA=Y dpkg -i "./ODBC 17 binaries preview/Ubuntu 16/msodbcsql_17.0.0.5-1_amd64.deb"
52-
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && ACCEPT_EULA=Y dpkg -i "./ODBC 17 binaries preview/Ubuntu 16/mssql-tools_17.0.0.5-1_amd64.deb"
53-
ENV PATH="/opt/mssql-tools/bin:${PATH}"
54-
5555
WORKDIR $PHPSQLDIR/source/
56+
5657
RUN chmod +x ./packagize.sh
5758
RUN /bin/bash -c "./packagize.sh"
5859

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

ODBC 17 binaries preview/README.md

Lines changed: 0 additions & 6 deletions
This file was deleted.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)