fix: update docker image file with msodbc17

This commit is contained in:
JimMoen 2023-09-14 16:39:05 +08:00
parent cf334d5542
commit c68e380c6f
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
1 changed files with 3 additions and 3 deletions

View File

@ -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 \