mssql image that can be easily extended to load schema and data on startup.
Based on an original mssql image for Linux.
docker build -t mssql:latest .We inherit the same configuration from mssql
that is provided by the original image from Microsoft:
ACCEPT_EULA=Yenv var, otherwise your container will not workSA_PASSWORD=YOUR_PASSWORDenv var to setsauser's password
We also provide a volume with scripts (./scripts) to be extended later:
./scripts/schema.sqlcontains schema definition file./scripts/data.sqlcontains 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 mssqlSee docker-compose.yml for a service example.
MIT.