Skip to content

Instantly share code, notes, and snippets.

@avernet
Created October 23, 2017 17:25
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save avernet/a8a79ba9835056d9456c55441a602184 to your computer and use it in GitHub Desktop.
Save avernet/a8a79ba9835056d9456c55441a602184 to your computer and use it in GitHub Desktop.
SQL Server Docker instance with full-text search (FTS)
# mssql-agent-fts-ha-tools
# Maintainers: Microsoft Corporation (LuisBosquez and twright-msft on GitHub)
# GitRepo: https://github.com/Microsoft/mssql-docker
# Base OS layer: Latest Ubuntu LTS + mssql-server-linux (SQL Server engine + tools)
FROM microsoft/mssql-server-linux
#Install curl since it is needed to get repo config
# Get official Microsoft repository configuration
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y curl && \
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list | tee /etc/apt/sources.list.d/mssql-server.list && \
apt-get update
# Install optional packages. Comment out the ones you don't need
# RUN apt-get install -y mssql-server-agent
# RUN apt-get install -y mssql-server-ha
RUN apt-get install -y mssql-server-fts
# Run SQL Server process
CMD /opt/mssql/bin/sqlservr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment