Skip to content

Commit

Permalink
improve example "ms sql server linux docker image"
Browse files Browse the repository at this point in the history
  • Loading branch information
max-ieremenko committed Mar 18, 2021
1 parent 5adefc1 commit eaab43c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Examples/SqlServerDockerImage/create-database.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ RUN dotnet tool install --global SqlDatabase.GlobalTool
# 2. create database
# 3. shatdown mssql server
RUN /opt/mssql/bin/sqlservr & \
sleep 20 && \
export PATH="$PATH:/root/.dotnet/tools" && \
SqlDatabase create \
"-database=Data Source=.;Initial Catalog=SqlDatabaseDemo;User Id=sa;Password=P@ssw0rd;" \
"-database=Data Source=.;Initial Catalog=SqlDatabaseDemo;User Id=sa;Password=P@ssw0rd;ConnectRetryCount=20;ConnectRetryInterval=1" \
-from=/sql-scripts && \
pkill sqlservr

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ RUN dotnet tool install --global SqlDatabase.GlobalTool
# 2. upgrade database
# 3. shatdown mssql server
RUN /opt/mssql/bin/sqlservr & \
sleep 20 && \
export PATH="$PATH:/root/.dotnet/tools" && \
SqlDatabase upgrade \
"-database=Data Source=.;Initial Catalog=SqlDatabaseDemo;User Id=sa;Password=P@ssw0rd;" \
"-database=Data Source=.;Initial Catalog=SqlDatabaseDemo;User Id=sa;Password=P@ssw0rd;ConnectRetryCount=20;ConnectRetryInterval=1" \
-from=/sql-scripts && \
pkill sqlservr

Expand Down

0 comments on commit eaab43c

Please sign in to comment.