Skip to content

Commit

Permalink
Fixed Docker shell script plus minor text changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
sanagama committed Oct 22, 2017
1 parent 6e7e479 commit 832676e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Models/ServerResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ public class ServerResource : Resource

public string Product
{
// Azure SQL DB and Azure SQL DW don't support the 'Product' property
// Azure SQL DB and Azure SQL DW don't support the SMO Product' property
get
{
string retVal = "Unknown";
string retVal = "Not Available";
if(this.SmoServer.ServerType == SMOCommon.DatabaseEngineType.Standalone)
{
retVal = this.SmoServer.Product;
Expand Down
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static int Main(string[] args)

try
{
Log.Information("*** REST API middle-tier for SQL Server");
Log.Information("*** REST API for SQL Server, Azure SQL Database and Azure SQL Data Warehouse.");
TestSqlServerConnection();
StartWebHost();
return 0;
Expand Down
11 changes: 6 additions & 5 deletions scripts/4-docker-restapi-sqldb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ set -x

docker pull sanagama/mssql-restapi

MSSQL_HOST="<server>.database.windows.net" \
MSSQL_PORT="1433" \
MSSQL_USERNAME="<username>" \
MSSQL_PASSWORD="<password>" \
docker run -it --name 'mssql-restapi' -p 5000:5000 sanagama/mssql-restapi
docker run -it -p 5000:5000 \
-e MSSQL_HOST="<server>.database.windows.net" \
-e MSSQL_PORT="1433" \
-e MSSQL_USERNAME="<username>" \
-e MSSQL_PASSWORD="<password>" \
sanagama/mssql-restapi

0 comments on commit 832676e

Please sign in to comment.