Dockerfile.msodbc 984 B

1234567891011121314151617181920212223242526
  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.5.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. && . /etc/os-release \
  15. && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - \
  16. && curl "https://packages.microsoft.com/config/debian/$VERSION_ID/prod.list" > /etc/apt/sources.list.d/mssql-release.list \
  17. && apt-get update \
  18. && ACCEPT_EULA=Y apt-get install -y msodbcsql17 unixodbc-dev \
  19. && sed -i 's/ODBC Driver 17 for SQL Server/ms-sql/g' /etc/odbcinst.ini \
  20. && apt-get clean \
  21. && rm -rf /var/lib/apt/lists/*
  22. USER emqx