mirror of https://github.com/abpframework/eventhub
8 changed files with 36 additions and 85 deletions
@ -1,22 +1,22 @@ |
|||||
apiVersion: apps/v1 |
apiVersion: apps/v1 |
||||
kind: Deployment |
kind: Deployment |
||||
metadata: |
metadata: |
||||
name: volosoft-eventhub-web-deployment |
name: volosoft-eventhub-web-deployment |
||||
spec: |
spec: |
||||
selector: |
selector: |
||||
matchLabels: |
matchLabels: |
||||
app: volosoft-eventhub-web-pod |
app: volosoft-eventhub-web-pod |
||||
template: |
template: |
||||
metadata: |
metadata: |
||||
labels: |
labels: |
||||
app: volosoft-eventhub-web-pod |
app: volosoft-eventhub-web-pod |
||||
spec: |
spec: |
||||
containers: |
containers: |
||||
- name: volosoft-eventhub-web-container |
- name: volosoft-eventhub-web-container |
||||
image: voloeventhub.azurecr.io/voloeventhub:v1 |
image: voloeventhub.azurecr.io/voloeventhub:v1 |
||||
resources: |
resources: |
||||
limits: |
limits: |
||||
memory: "128Mi" |
memory: "128Mi" |
||||
cpu: "500m" |
cpu: "500m" |
||||
ports: |
ports: |
||||
- containerPort: 80 |
- containerPort: 80 |
||||
@ -1,11 +1,11 @@ |
|||||
apiVersion: v1 |
apiVersion: v1 |
||||
kind: Service |
kind: Service |
||||
metadata: |
metadata: |
||||
name: volosoft-eventhub-web-service |
name: volosoft-eventhub-web-service |
||||
spec: |
spec: |
||||
selector: |
selector: |
||||
app: volosoft-eventhub-web-pod |
app: volosoft-eventhub-web-pod |
||||
ports: |
ports: |
||||
- port: 8080 |
- port: 8080 |
||||
targetPort: 80 |
targetPort: 80 |
||||
type: ClusterIP |
type: ClusterIP |
||||
@ -1,15 +0,0 @@ |
|||||
node_modules |
|
||||
npm-debug.log |
|
||||
Dockerfile* |
|
||||
docker-compose* |
|
||||
.dockerignore |
|
||||
.git |
|
||||
.gitignore |
|
||||
.env |
|
||||
*/bin |
|
||||
*/obj |
|
||||
bin |
|
||||
obj |
|
||||
README.md |
|
||||
LICENSE |
|
||||
.vscode |
|
||||
@ -1,15 +0,0 @@ |
|||||
node_modules |
|
||||
npm-debug.log |
|
||||
Dockerfile* |
|
||||
docker-compose* |
|
||||
.dockerignore |
|
||||
.git |
|
||||
.gitignore |
|
||||
.env |
|
||||
*/bin |
|
||||
*/obj |
|
||||
bin |
|
||||
obj |
|
||||
README.md |
|
||||
LICENSE |
|
||||
.vscode |
|
||||
@ -1,19 +0,0 @@ |
|||||
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"] |
|
||||
Loading…
Reference in new issue