mssql-linux-friendly

MSSQL Server that works well and is friendly to the end user

MIT License

Stars
6
Committers
2

mssql-linux-friendly

mssql image that can be easily extended to load schema and data on startup.

Based on an original mssql image for Linux.

Building

docker build -t mssql:latest .

Configuration

We inherit the same configuration from mssql that is provided by the original image from Microsoft:

  • ACCEPT_EULA=Y env var, otherwise your container will not work
  • SA_PASSWORD=YOUR_PASSWORD env var to set sa user's password

Volumes

We also provide a volume with scripts (./scripts) to be extended later:

  • ./scripts/schema.sql contains schema definition file
  • ./scripts/data.sql contains your data that should be inserted on startup

They are both empty by default.

To customize these files use volumes:

docker run -v ./your/custom/scripts:/code/scripts -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=MyStrongPassword1' -p 1433:1433 -d mssql

docker-compose

See docker-compose.yml for a service example.

License

MIT.

Badges
Extracted from project README
wemake.services test Dockerhub image size mssql's version
Related Projects