Created
February 10, 2023 02:03
-
-
Save aaronmbos/ac75e8fe22101d428d3ace2993a771b7 to your computer and use it in GitHub Desktop.
mssql_docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.4" | |
services: | |
db: | |
build: | |
context: . | |
dockerfile: Dockerfile | |
ports: | |
- 1434:1433 | |
environment: | |
ACCEPT_EULA: Y | |
SA_PASSWORD: ${SA_PASSWORD} | |
volumes: | |
- data:/var/opt/mssql | |
volumes: | |
data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mssql-agent-fts-ha-tools | |
# Maintainers: Microsoft Corporation (twright-msft on GitHub) | |
# GitRepo: https://github.com/Microsoft/mssql-docker | |
# Base OS layer: Latest Ubuntu LTS | |
FROM ubuntu:16.04 | |
# Install prerequistes since it is needed to get repo config for SQL server | |
RUN export DEBIAN_FRONTEND=noninteractive && \ | |
apt-get update && \ | |
apt-get install -yq curl apt-transport-https && \ | |
# Get official Microsoft repository configuration | |
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && \ | |
curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server-2019.list | tee /etc/apt/sources.list.d/mssql-server.list && \ | |
apt-get update && \ | |
# Install SQL Server from apt | |
apt-get install -y mssql-server && \ | |
# Install optional packages | |
apt-get install -y mssql-server-ha && \ | |
apt-get install -y mssql-server-fts && \ | |
# Cleanup the Dockerfile | |
apt-get clean && \ | |
rm -rf /var/lib/apt/lists | |
# 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