Remove dockerfiles, update readme, and add issue and PR templates (#812)
This commit is contained in:
parent
c8d438c06b
commit
669c1755a8
|
|
@ -1,45 +0,0 @@
|
|||
.git
|
||||
|
||||
**/Obj/
|
||||
**/obj/
|
||||
**/bin/
|
||||
**/Bin/
|
||||
.vs/
|
||||
*.xap
|
||||
*.user
|
||||
/TestResults
|
||||
*.vspscc
|
||||
*.vssscc
|
||||
*.suo
|
||||
*.cache
|
||||
*.docstates
|
||||
_ReSharper.*
|
||||
*.csproj.user
|
||||
*[Rr]e[Ss]harper.user
|
||||
_ReSharper.*/
|
||||
packages/*
|
||||
artifacts/*
|
||||
msbuild.log
|
||||
PublishProfiles/
|
||||
*.psess
|
||||
*.vsp
|
||||
*.pidb
|
||||
*.userprefs
|
||||
*DS_Store
|
||||
*.ncrunchsolution
|
||||
*.log
|
||||
*.vspx
|
||||
/.symbols
|
||||
nuget.exe
|
||||
build/
|
||||
*net45.csproj
|
||||
*k10.csproj
|
||||
App_Data/
|
||||
bower_components
|
||||
node_modules
|
||||
*.sln.ide
|
||||
*.ng.ts
|
||||
*.sln.ide
|
||||
.build/
|
||||
.testpublish/
|
||||
launchSettings.json
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
This repository is a test application used for ASP.NET Core internal test processes.
|
||||
It is not intended to be a representative sample of how to use ASP.NET Core.
|
||||
|
||||
Samples and docs for ASP.NET Core can be found here: https://docs.asp.net.
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
This repository is a test application used for ASP.NET Core internal test processes.
|
||||
It is not intended to be a representative sample of how to use ASP.NET Core.
|
||||
|
||||
Samples and docs for ASP.NET Core can be found here: https://docs.asp.net.
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
FROM microsoft/dotnet:1.1-sdk-msbuild
|
||||
|
||||
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||||
|
||||
RUN New-Item -Path \MusicStore\samples\MusicStore -Type Directory
|
||||
WORKDIR MusicStore
|
||||
|
||||
ADD samples/MusicStore/MusicStore.csproj samples/MusicStore/MusicStore.csproj
|
||||
ADD NuGet.config .
|
||||
RUN dotnet restore .\samples\MusicStore
|
||||
|
||||
ADD samples samples
|
||||
RUN dotnet build .\samples\MusicStore
|
||||
|
||||
EXPOSE 5000
|
||||
ENV ASPNETCORE_URLS http://0.0.0.0:5000
|
||||
CMD dotnet run -p .\samples\MusicStore
|
||||
38
README.md
38
README.md
|
|
@ -1,32 +1,20 @@
|
|||
MusicStore test application
|
||||
============================================
|
||||
MusicStore (test application)
|
||||
=============================
|
||||
|
||||
AppVeyor: [](https://ci.appveyor.com/project/aspnetci/MusicStore/branch/dev)
|
||||
AppVeyor: [![AppVeyor][appveyor-badge]][appveyor-build]
|
||||
|
||||
Travis: [](https://travis-ci.org/aspnet/MusicStore)
|
||||
Travis: [![Travis][travis-badge]][travis-build]
|
||||
|
||||
[appveyor-badge]: https://ci.appveyor.com/api/projects/status/ja8a7j6jscj7k3xa/branch/dev?svg=true
|
||||
[appveyor-build]: https://ci.appveyor.com/project/aspnetci/MusicStore/branch/dev
|
||||
[travis-badge]: https://travis-ci.org/aspnet/MusicStore.svg?branch=dev
|
||||
[travis-build]: https://travis-ci.org/aspnet/MusicStore
|
||||
|
||||
This project is part of ASP.NET Core. You can find samples, documentation and getting started instructions for ASP.NET Core at the [Home](https://github.com/aspnet/home) repo.
|
||||
|
||||
## Run the application:
|
||||
* If you have Visual Studio 2017
|
||||
1. Open MusicStore.sln in Visual Studio 2017 and run the individual applications on `IIS Express`.
|
||||
## About this repo
|
||||
|
||||
* If you don't have Visual Studio 2017
|
||||
1. Open a command prompt and execute `cd \src\MusicStore\`.
|
||||
2. Execute `dotnet restore`.
|
||||
This repository is a test application used for ASP.NET Core internal test processes.
|
||||
It is not intended to be a representative sample of how to use ASP.NET Core.
|
||||
|
||||
**NOTE:** App and tests require Visual Studio 2017 LocalDB on the machine to run.
|
||||
**NOTE:** Since SQL Server is not generlly available on Mac, the InMemoryStore is used to run the application. So the changes that you make will not be persisted.
|
||||
|
||||
## Run on Docker Windows Containers
|
||||
|
||||
* [Install Docker for Windows](https://docs.docker.com/docker-for-windows/) or [setup up Docker Windows containers](https://msdn.microsoft.com/en-us/virtualization/windowscontainers/containers_welcome)
|
||||
* `docker-compose -f .\docker-compose.windows.yml build`
|
||||
* `docker-compose -f .\docker-compose.windows.yml up`
|
||||
* Access MusicStore on either the Windows VM IP or (if container is running locally) on the container IP: `docker inspect -f "{{ .NetworkSettings.Networks.nat.IPAddress }}" musicstore_web_1`
|
||||
|
||||
## NTLM authentication
|
||||
More information at [samples/MusicStore/StartupNtlmAuthentication.cs](StartupNtlmAuthentication).
|
||||
|
||||
## OpenIdConnect authentication
|
||||
More information at [samples/MusicStore/StartupOpenIdConnect.cs](StartupOpenIdConnect).
|
||||
Samples and docs for ASP.NET Core can be found here: <https://docs.asp.net>.
|
||||
|
|
|
|||
|
|
@ -1,25 +0,0 @@
|
|||
version: '3'
|
||||
services:
|
||||
db:
|
||||
image: microsoft/mssql-server-windows-express
|
||||
environment:
|
||||
sa_password: "Password1"
|
||||
ACCEPT_EULA: "Y"
|
||||
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
|
||||
Loading…
Reference in New Issue