MANS Stack (Mac, ASP.NET MVC, .NET Core, SQL Server 2017)
Valid as of April 18, 2018
Let's install .NET SDK for Mac.https://www.microsoft.com/net/learn/get-started/macos
Download Visual Studio for Mac
https://www.visualstudio.com/vs/mac/
Download Docker for Mac
https://www.docker.com/docker-mac
Download SQL Server 2017 Ubuntu Docker Image
https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker
NOTE: After you pull the SQL Server 2017 Docker Image. Run it and accept the EULA. Exit the SQL Server 2017 Image and commit the image
$ docker ps
CONTAINER ID IMAGE COMMAN CREATED STATUS PORTS NAMES
cb31a41d1f1b microsoft/mssql-server-linux:2017-latest "/opt/mssql/bin/sqls…" 2 hours ago Up 2 hours 0.0.0.0:1401->1433/tcp sql1
$ docker commit cb31a41d1f1b microsoft/mssql-server-linux:2017-latest
Running the docker image without commiting will show the error:
$ docker run microsoft/mssql-server-linux:2017-latest
The SQL Server End-User License Agreement (EULA) must be accepted before SQL
Server can start. The license terms for this product can be downloaded from
http://go.microsoft.com/fwlink/?LinkId=746388.
You can accept the EULA by specifying the --accept-eula command line option,
setting the ACCEPT_EULA environment variable, or using the mssql-conf tool.
Connection String Example:
Server=127.0.0.1,1401;Database=AppDb;User Id=sa;Password=P@ssw0rd;