mirror of https://github.com/abpframework/eventhub
committed by
GitHub
23 changed files with 417 additions and 18 deletions
@ -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,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,15 @@ |
|||
node_modules |
|||
npm-debug.log |
|||
Dockerfile* |
|||
docker-compose* |
|||
.dockerignore |
|||
.git |
|||
.gitignore |
|||
.env |
|||
*/bin |
|||
*/obj |
|||
bin |
|||
obj |
|||
README.md |
|||
LICENSE |
|||
.vscode |
|||
@ -0,0 +1,19 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 5002 |
|||
|
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build |
|||
WORKDIR /src |
|||
COPY ["src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj", "src/EventHub.HttpApi.Host/"] |
|||
RUN dotnet restore "src/EventHub.HttpApi.Host/EventHub.HttpApi.Host.csproj" |
|||
COPY . . |
|||
WORKDIR "/src/src/EventHub.HttpApi.Host" |
|||
RUN dotnet build "EventHub.HttpApi.Host.csproj" -c Release -o /app |
|||
|
|||
FROM build AS publish |
|||
RUN dotnet publish "EventHub.HttpApi.Host.csproj" -c Release -o /app |
|||
|
|||
FROM base AS final |
|||
WORKDIR /app |
|||
COPY --from=publish /app . |
|||
ENTRYPOINT ["dotnet", "EventHub.HttpApi.Host.dll"] |
|||
@ -0,0 +1,23 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: volosoft-eventhub-httpapi-host-deployment |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: volosoft-eventhub-httpapi-host-pod |
|||
replicas: 2 |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: volosoft-eventhub-httpapi-host-pod |
|||
spec: |
|||
containers: |
|||
- name: volosoft-eventhub-httpapi-host-container |
|||
image: voloeventhubhttpapihost.azurecr.io/voloeventhubhttpapihost:v1 |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 5002 |
|||
@ -0,0 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-httpapi-host-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-httpapi-host-pod |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
type: LoadBalancer |
|||
@ -0,0 +1,15 @@ |
|||
node_modules |
|||
npm-debug.log |
|||
Dockerfile* |
|||
docker-compose* |
|||
.dockerignore |
|||
.git |
|||
.gitignore |
|||
.env |
|||
*/bin |
|||
*/obj |
|||
bin |
|||
obj |
|||
README.md |
|||
LICENSE |
|||
.vscode |
|||
@ -0,0 +1,19 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 5001 |
|||
|
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build |
|||
WORKDIR /src |
|||
COPY ["src/EventHub.IdentityServer/EventHub.IdentityServer.csproj", "src/EventHub.IdentityServer/"] |
|||
RUN dotnet restore "src/EventHub.IdentityServer/EventHub.IdentityServer.csproj" |
|||
COPY . . |
|||
WORKDIR "/src/src/EventHub.IdentityServer" |
|||
RUN dotnet build "EventHub.IdentityServer.csproj" -c Release -o /app |
|||
|
|||
FROM build AS publish |
|||
RUN dotnet publish "EventHub.IdentityServer.csproj" -c Release -o /app |
|||
|
|||
FROM base AS final |
|||
WORKDIR /app |
|||
COPY --from=publish /app . |
|||
ENTRYPOINT ["dotnet", "EventHub.IdentityServer.dll"] |
|||
@ -0,0 +1,22 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: volosoft-eventhub-identityserver-deployment |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: volosoft-eventhub-identityserver-pod |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: volosoft-eventhub-identityserver-pod |
|||
spec: |
|||
containers: |
|||
- name: volosoft-eventhub-identityserver-container |
|||
image: voloeventhubidentityserver.azurecr.io/voloeventhubidentityserver:v1 |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 5001 |
|||
@ -0,0 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-identityserver-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-identityserver-pod |
|||
ports: |
|||
- port: 80 |
|||
targetPort: 80 |
|||
type: LoadBalancer |
|||
@ -0,0 +1,15 @@ |
|||
node_modules |
|||
npm-debug.log |
|||
Dockerfile* |
|||
docker-compose* |
|||
.dockerignore |
|||
.git |
|||
.gitignore |
|||
.env |
|||
*/bin |
|||
*/obj |
|||
bin |
|||
obj |
|||
README.md |
|||
LICENSE |
|||
.vscode |
|||
@ -0,0 +1,19 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 80 |
|||
|
|||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build |
|||
WORKDIR /src |
|||
COPY ["src/EventHub.Web/EventHub.Web.csproj", "src/EventHub.Web/"] |
|||
RUN dotnet restore "src/EventHub.Web/EventHub.Web.csproj" |
|||
COPY . . |
|||
WORKDIR "/src/src/EventHub.Web" |
|||
RUN dotnet build "EventHub.Web.csproj" -c Release -o /app |
|||
|
|||
FROM build AS publish |
|||
RUN dotnet publish "EventHub.Web.csproj" -c Release -o /app |
|||
|
|||
FROM base AS final |
|||
WORKDIR /app |
|||
COPY --from=publish /app . |
|||
ENTRYPOINT ["dotnet", "EventHub.Web.dll"] |
|||
@ -0,0 +1,22 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: volosoft-eventhub-web-deployment |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: volosoft-eventhub-web-pod |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: volosoft-eventhub-web-pod |
|||
spec: |
|||
containers: |
|||
- name: volosoft-eventhub-web-container |
|||
image: voloeventhub.azurecr.io/voloeventhub:v1 |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 80 |
|||
@ -0,0 +1,11 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-web-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-web-pod |
|||
ports: |
|||
- port: 8080 |
|||
targetPort: 80 |
|||
type: ClusterIP |
|||
@ -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