fix: update docker image file with msodbc17
This commit is contained in:
parent
cf334d5542
commit
c68e380c6f
|
@ -7,15 +7,15 @@
|
||||||
## $ docker build -f=Dockerfile.msodbc -t emqx-enterprise-with-msodbc:5.0.3-alpha.2 .
|
## $ docker build -f=Dockerfile.msodbc -t emqx-enterprise-with-msodbc:5.0.3-alpha.2 .
|
||||||
## ```
|
## ```
|
||||||
|
|
||||||
# FROM emqx/emqx-enterprise:latest
|
ARG VERSION=5.2.0
|
||||||
FROM emqx/emqx-enterprise:5.0.3-alpha.2
|
FROM emqx/emqx-enterprise:$VERSION
|
||||||
|
|
||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get install -y gnupg2 curl apt-utils \
|
&& apt-get install -y gnupg2 curl apt-utils \
|
||||||
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
&& curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
|
||||||
&& curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-mkc crelease.list \
|
&& curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& ACCEPT_EULA=Y apt-get install -y msodbcsql17 unixodbc-dev \
|
&& ACCEPT_EULA=Y apt-get install -y msodbcsql17 unixodbc-dev \
|
||||||
&& sed -i 's/ODBC Driver 17 for SQL Server/ms-sql/g' /etc/odbcinst.ini \
|
&& sed -i 's/ODBC Driver 17 for SQL Server/ms-sql/g' /etc/odbcinst.ini \
|
||||||
|
|
Loading…
Reference in New Issue