This repository was archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 872
Add details on running in Docker Windows containers #713
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5bc2b83
Add details on running in Docker Windows containers
friism 6abc742
improve comment
friism ef993c5
remove caching directive
friism abe185e
Updating docker-compose.yml version to 2.1
PatrickLang ba8f5ba
Merge pull request #3 from PatrickLang/patricklang-compose-update
friism 767a53a
upgrade to 2.1, change to nanoserver and newline at eof
friism File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
FROM microsoft/dotnet:1.0.0-preview2.1-nanoserver-sdk | ||
|
||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"] | ||
|
||
# REMARK: Temporary workaround for Windows DNS client weirdness | ||
RUN set-itemproperty -path 'HKLM:\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters' -Name ServerPriorityTimeLimit -Value 0 -Type DWord | ||
|
||
RUN New-Item -Path \MusicStore\samples\MusicStore.Standalone -Type Directory | ||
WORKDIR MusicStore | ||
|
||
ADD samples/MusicStore.Standalone/project.json samples/MusicStore.Standalone/project.json | ||
ADD NuGet.config . | ||
RUN dotnet restore .\samples\MusicStore.Standalone | ||
|
||
ADD samples samples | ||
RUN dotnet build .\samples\MusicStore.Standalone | ||
|
||
EXPOSE 5000 | ||
ENV ASPNETCORE_URLS http://0.0.0.0:5000 | ||
CMD dotnet run -p .\samples\MusicStore.Standalone |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: '2.1' | ||
services: | ||
db: | ||
image: microsoft/mssql-server-2016-express-windows | ||
environment: | ||
sa_password: "Password1" | ||
ports: | ||
- "1433:1433" # REMARK: This is currently required, needs investigation | ||
|
||
web: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.windows | ||
environment: | ||
- "Data:DefaultConnection:ConnectionString=Server=db,1433;Database=MusicStore;User Id=sa;Password=Password1;MultipleActiveResultSets=True" | ||
depends_on: | ||
- "db" | ||
ports: | ||
- "5000:5000" | ||
|
||
networks: | ||
default: | ||
external: | ||
name: nat |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does
db,1433
work? I have been doingdb:1433
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comma is the canonical representation, and just want to echo this commenter's sentiment: http://stackoverflow.com/questions/5294721/how-to-specify-a-port-number-in-sql-server-connection-string#comment27379349_5294741