Sign inSign up

sobolevn/mssql-linux-friendly

By sobolevn

•Updated about 7 years ago

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

Image
0

1.1K

sobolevn/mssql-linux-friendly repository overview

⁠mssql-linux-friendly

wemake.services Build Status Dockerhub image size mssql's version

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.

Tag summary

Content type

Image

Digest

Size

425.7 MB

Last updated

about 7 years ago

docker pull sobolevn/mssql-linux-friendly