-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is the overall migration from full framework to ASP.NET Core 6.0. Co-authored-by: Nick Craver <[email protected]> Co-authored-by: Ben Macpherson <[email protected]> Co-authored-by: mgravell <[email protected]> Co-authored-by: Dean Ward <[email protected]> Co-authored-by: Dean Ward <[email protected]> Co-authored-by: Richard Hubley <[email protected]> Co-authored-by: Aaron Bertrand <[email protected]>
- Loading branch information
1 parent
ed57f51
commit a47b1fc
Showing
773 changed files
with
15,587 additions
and
26,494 deletions.
There are no files selected for viewing
This file contains 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,15 @@ | ||
[Oo]bj/ | ||
[Bb]in/ | ||
.vs/ | ||
TestResults/ | ||
artifacts/ | ||
_ReSharper.*/ | ||
_ReSharper.* | ||
*.user | ||
*.suo | ||
*.cache | ||
*.psess | ||
*.vsp | ||
*.pidb | ||
*.userprefs | ||
*DS_Store |
This file contains 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 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 @@ | ||
{ | ||
"help": "https://go.microsoft.com/fwlink/?linkid=866610", | ||
"root": true, | ||
|
||
"dependentFileProviders": { | ||
"add": { | ||
"pathSegment": { | ||
"add": { | ||
"ExtensionMethods.*": [ ".cs" ], | ||
"Models\\*.*": [ "*.cs" ] | ||
} | ||
}, | ||
"fileSuffixToExtension": { | ||
"add": { | ||
".Model.cs": [ ".cshtml" ], | ||
".json.defaults": [ ".json" ], | ||
".min.css": [ ".css" ], | ||
".min.js": [ ".js" ], | ||
".min.js.map": [ ".min.js" ] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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,15 @@ | ||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'Dockerfile' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build Opserver Docker Image | ||
run: | | ||
docker build --tag opserver/opserver-ci:latest --target web . |
This file contains 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,15 @@ | ||
name: CI Build | ||
|
||
on: [push] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.x | ||
- uses: actions/checkout@v1 | ||
- name: Build with dotnet | ||
run: dotnet build |
This file contains 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 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,28 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build | ||
WORKDIR /app | ||
|
||
# Global | ||
COPY ./*.sln ./nuget.config ./ | ||
# Apps | ||
COPY src/*/*.csproj ./ | ||
RUN for file in $(ls *.csproj); do mkdir -p src/${file%.*}/ && mv $file src/${file%.*}/; done | ||
# Tests | ||
COPY tests/*/*.csproj ./ | ||
RUN for file in $(ls *.csproj); do mkdir -p tests/${file%.*}/ && mv $file tests/${file%.*}/; done | ||
|
||
# Copy all | ||
COPY . . | ||
|
||
# FROM build AS test-runner | ||
# WORKDIR /app/tests/Opserver.Tests | ||
# ENTRYPOINT dotnet test --results-directory /app/artifacts --logger:trx | ||
|
||
FROM build AS web-publish | ||
WORKDIR /app/src/Opserver.Web | ||
RUN dotnet publish -c Release -o publish | ||
|
||
# Build runtime image | ||
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS web | ||
WORKDIR /app | ||
COPY --from=web-publish /app/src/Opserver.Web/publish ./ | ||
ENTRYPOINT ["dotnet", "Opserver.Web.dll"] |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.