mirror of https://github.com/abpframework/eventhub
7 changed files with 220 additions and 0 deletions
@ -0,0 +1,40 @@ |
|||
{ |
|||
"version": "0.2.0", |
|||
"configurations": [ |
|||
{ |
|||
"name": ".NET Core Launch (web)", |
|||
"type": "coreclr", |
|||
"request": "launch", |
|||
"preLaunchTask": "build", |
|||
"program": "${workspaceFolder}/src/EventHub.Web/bin/Debug/net5.0/EventHub.Web.dll", |
|||
"args": [], |
|||
"cwd": "${workspaceFolder}/src/EventHub.Web", |
|||
"stopAtEntry": false, |
|||
"serverReadyAction": { |
|||
"action": "openExternally", |
|||
"pattern": "\\bNow listening on:\\s+(https?://\\S+)" |
|||
}, |
|||
"env": { |
|||
"ASPNETCORE_ENVIRONMENT": "Development" |
|||
}, |
|||
"sourceFileMap": { |
|||
"/Views": "${workspaceFolder}/Views" |
|||
} |
|||
}, |
|||
{ |
|||
"name": ".NET Core Attach", |
|||
"type": "coreclr", |
|||
"request": "attach", |
|||
"processId": "${command:pickProcess}" |
|||
}, |
|||
{ |
|||
"name": "Docker .NET Core Launch", |
|||
"type": "docker", |
|||
"request": "launch", |
|||
"preLaunchTask": "docker-run: debug", |
|||
"netCore": { |
|||
"appProject": "${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
@ -0,0 +1,99 @@ |
|||
{ |
|||
"version": "2.0.0", |
|||
"tasks": [ |
|||
{ |
|||
"label": "build", |
|||
"command": "dotnet", |
|||
"type": "process", |
|||
"args": [ |
|||
"build", |
|||
"${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj", |
|||
"/property:GenerateFullPaths=true", |
|||
"/consoleloggerparameters:NoSummary" |
|||
], |
|||
"problemMatcher": "$msCompile" |
|||
}, |
|||
{ |
|||
"label": "publish", |
|||
"command": "dotnet", |
|||
"type": "process", |
|||
"args": [ |
|||
"publish", |
|||
"${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj", |
|||
"/property:GenerateFullPaths=true", |
|||
"/consoleloggerparameters:NoSummary" |
|||
], |
|||
"problemMatcher": "$msCompile" |
|||
}, |
|||
{ |
|||
"label": "watch", |
|||
"command": "dotnet", |
|||
"type": "process", |
|||
"args": [ |
|||
"watch", |
|||
"run", |
|||
"${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj", |
|||
"/property:GenerateFullPaths=true", |
|||
"/consoleloggerparameters:NoSummary" |
|||
], |
|||
"problemMatcher": "$msCompile" |
|||
}, |
|||
{ |
|||
"type": "docker-build", |
|||
"label": "docker-build: debug", |
|||
"dependsOn": [ |
|||
"build" |
|||
], |
|||
"dockerBuild": { |
|||
"tag": "eventhub:dev", |
|||
"target": "base", |
|||
"dockerfile": "${workspaceFolder}/src/EventHub.Web/Dockerfile", |
|||
"context": "${workspaceFolder}", |
|||
"pull": true |
|||
}, |
|||
"netCore": { |
|||
"appProject": "${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj" |
|||
} |
|||
}, |
|||
{ |
|||
"type": "docker-build", |
|||
"label": "docker-build: release", |
|||
"dependsOn": [ |
|||
"build" |
|||
], |
|||
"dockerBuild": { |
|||
"tag": "eventhub:latest", |
|||
"dockerfile": "${workspaceFolder}/src/EventHub.Web/Dockerfile", |
|||
"context": "${workspaceFolder}", |
|||
"pull": true |
|||
}, |
|||
"netCore": { |
|||
"appProject": "${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj" |
|||
} |
|||
}, |
|||
{ |
|||
"type": "docker-run", |
|||
"label": "docker-run: debug", |
|||
"dependsOn": [ |
|||
"docker-build: debug" |
|||
], |
|||
"dockerRun": {}, |
|||
"netCore": { |
|||
"appProject": "${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj", |
|||
"enableDebugging": true, |
|||
"configureSsl": false |
|||
} |
|||
}, |
|||
{ |
|||
"type": "docker-run", |
|||
"label": "docker-run: release", |
|||
"dependsOn": [ |
|||
"docker-build: release" |
|||
], |
|||
"dockerRun": {}, |
|||
"netCore": { |
|||
"appProject": "${workspaceFolder}/src/EventHub.Web/EventHub.Web.csproj" |
|||
} |
|||
} |
|||
] |
|||
} |
|||
@ -0,0 +1,25 @@ |
|||
**/.classpath |
|||
**/.dockerignore |
|||
**/.env |
|||
**/.git |
|||
**/.gitignore |
|||
**/.project |
|||
**/.settings |
|||
**/.toolstarget |
|||
**/.vs |
|||
**/.vscode |
|||
**/*.*proj.user |
|||
**/*.dbmdl |
|||
**/*.jfm |
|||
**/azds.yaml |
|||
**/bin |
|||
**/charts |
|||
**/docker-compose* |
|||
**/compose* |
|||
**/Dockerfile* |
|||
**/node_modules |
|||
**/npm-debug.log |
|||
**/obj |
|||
**/secrets.dev.yaml |
|||
**/values.dev.yaml |
|||
README.md |
|||
@ -0,0 +1,16 @@ |
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-image |
|||
|
|||
WORKDIR /. |
|||
COPY ./*/*.csproj ./ |
|||
RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done |
|||
RUN dotnet restore "EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj" --verbosity detailed |
|||
COPY . . |
|||
RUN dotnet publish ./EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj -o /publish/ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 |
|||
WORKDIR /publish |
|||
COPY --from=build-image /publish . |
|||
ENV ASPNETCORE_URLS="http://0.0.0.0:5002" |
|||
ENTRYPOINT ["dotnet", "EventHub.HttpApi.Host.dll"] |
|||
|
|||
|
|||
|
|||
@ -0,0 +1,16 @@ |
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-image |
|||
|
|||
WORKDIR /. |
|||
COPY ./*/*.csproj ./ |
|||
RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done |
|||
RUN dotnet restore "EventHub.IdentityServer/EventHub.IdentityServer.csproj" --verbosity detailed |
|||
COPY . . |
|||
RUN dotnet publish ./EventHub.IdentityServer/EventHub.IdentityServer.csproj -o /publish/ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 |
|||
WORKDIR /publish |
|||
COPY --from=build-image /publish . |
|||
ENV ASPNETCORE_URLS="http://0.0.0.0:5001" |
|||
ENTRYPOINT ["dotnet", "EventHub.IdentityServer.dll"] |
|||
|
|||
|
|||
|
|||
@ -0,0 +1,16 @@ |
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-image |
|||
|
|||
WORKDIR /. |
|||
COPY ./*/*.csproj ./ |
|||
RUN for file in $(ls *.csproj); do mkdir -p ./${file%.*}/ && mv $file ./${file%.*}/; done |
|||
RUN dotnet restore "EventHub.Web/EventHub.Web.csproj" --verbosity detailed |
|||
COPY . . |
|||
RUN dotnet publish ./EventHub.Web/EventHub.Web.csproj -o /publish/ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 |
|||
WORKDIR /publish |
|||
COPY --from=build-image /publish . |
|||
ENV ASPNETCORE_URLS="http://0.0.0.0:80" |
|||
ENTRYPOINT ["dotnet", "EventHub.Web.dll"] |
|||
|
|||
|
|||
|
|||
@ -0,0 +1,8 @@ |
|||
<Project> |
|||
<PropertyGroup> |
|||
<LangVersion>latest</LangVersion> |
|||
<Version>1.0.0</Version> |
|||
<NoWarn>$(NoWarn);CS1591;CS0436</NoWarn> |
|||
<AbpProjectType>app</AbpProjectType> |
|||
</PropertyGroup> |
|||
</Project> |
|||
Loading…
Reference in new issue