revert: "build: docker file add unixodbc and msodbcsql17"

This reverts commit 611edf4227.
This commit is contained in:
JimMoen 2023-04-14 15:42:44 +08:00
parent 9ce0dbae7b
commit 987ef6c51d
No known key found for this signature in database
GPG Key ID: 87A520B4F76BA86D
2 changed files with 3 additions and 14 deletions

1
.gitignore vendored
View File

@ -71,4 +71,3 @@ apps/emqx/test/emqx_static_checks_data/master.bpapi
lux_logs/ lux_logs/
/.prepare /.prepare
bom.json bom.json
.dockerignore

View File

@ -29,19 +29,9 @@ COPY --from=builder /emqx-rel/emqx /opt/emqx
RUN ln -s /opt/emqx/bin/* /usr/local/bin/ RUN ln -s /opt/emqx/bin/* /usr/local/bin/
RUN apt-get update \ RUN apt-get update; \
&& apt-get install -y --no-install-recommends ca-certificates procps apt-get install -y --no-install-recommends ca-certificates procps; \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y gnupg2 curl apt-utils \
&& 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-release.list \
&& apt-get update \
&& 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
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*;
WORKDIR /opt/emqx WORKDIR /opt/emqx