Dockerfile.msodbc 946 B

12345678910111213141516171819202122232425
  1. ## This Dockerfile should not run in GitHub Action or any other automated process.
  2. ## It should be manually executed by the needs of the user.
  3. ##
  4. ## Before manaually execute:
  5. ## Please confirm the EMQX-Enterprise version you are using and modify the base layer image tag
  6. ## ```bash
  7. ## $ docker build -f=Dockerfile.msodbc -t emqx-enterprise-with-msodbc:5.0.3-alpha.2 .
  8. ## ```
  9. ARG VERSION=5.2.0
  10. FROM emqx/emqx-enterprise:$VERSION
  11. USER root
  12. RUN apt-get update \
  13. && apt-get install -y gnupg2 curl apt-utils \
  14. && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
  15. && curl https://packages.microsoft.com/config/debian/11/prod.list > /etc/apt/sources.list.d/mssql-release.list \
  16. && apt-get update \
  17. && ACCEPT_EULA=Y apt-get install -y msodbcsql17 unixodbc-dev \
  18. && sed -i 's/ODBC Driver 17 for SQL Server/ms-sql/g' /etc/odbcinst.ini \
  19. && apt-get clean \
  20. && rm -rf /var/lib/apt/lists/*
  21. USER emqx