mirror of https://github.com/abpframework/eventhub
19 changed files with 4747 additions and 7314 deletions
@ -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,19 @@ |
|||||
|
apiVersion : apps/v1 |
||||
|
kind: Deployment |
||||
|
metadata: |
||||
|
name: voloeventhub |
||||
|
spec: |
||||
|
replicas: 1 |
||||
|
selector: |
||||
|
matchLabels: |
||||
|
app: voloeventhub |
||||
|
template: |
||||
|
metadata: |
||||
|
labels: |
||||
|
app: voloeventhub |
||||
|
spec: |
||||
|
containers: |
||||
|
- name: voloeventhub |
||||
|
image: voloeventhub.azurecr.io/voloeventhub |
||||
|
ports: |
||||
|
- containerPort: 80 |
||||
@ -0,0 +1,10 @@ |
|||||
|
apiVersion: v1 |
||||
|
kind: Service |
||||
|
metadata: |
||||
|
name: voloeventhub |
||||
|
spec: |
||||
|
type: LoadBalancer |
||||
|
ports: |
||||
|
- port: 80 |
||||
|
selector: |
||||
|
app: voloeventhub |
||||
File diff suppressed because it is too large
@ -1,31 +0,0 @@ |
|||||
using Microsoft.EntityFrameworkCore.Migrations; |
|
||||
|
|
||||
namespace EventHub.Migrations |
|
||||
{ |
|
||||
public partial class Added_Indexes : Migration |
|
||||
{ |
|
||||
protected override void Up(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_EhEvents_IsEmailSentToMembers", |
|
||||
table: "EhEvents", |
|
||||
column: "IsEmailSentToMembers"); |
|
||||
|
|
||||
migrationBuilder.CreateIndex( |
|
||||
name: "IX_EhEvents_IsRemindingEmailSent_StartTime", |
|
||||
table: "EhEvents", |
|
||||
columns: new[] { "IsRemindingEmailSent", "StartTime" }); |
|
||||
} |
|
||||
|
|
||||
protected override void Down(MigrationBuilder migrationBuilder) |
|
||||
{ |
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_EhEvents_IsEmailSentToMembers", |
|
||||
table: "EhEvents"); |
|
||||
|
|
||||
migrationBuilder.DropIndex( |
|
||||
name: "IX_EhEvents_IsRemindingEmailSent_StartTime", |
|
||||
table: "EhEvents"); |
|
||||
} |
|
||||
} |
|
||||
} |
|
||||
File diff suppressed because it is too large
File diff suppressed because it is too large
File diff suppressed because it is too large
@ -0,0 +1,15 @@ |
|||||
|
node_modules |
||||
|
npm-debug.log |
||||
|
Dockerfile* |
||||
|
docker-compose* |
||||
|
.dockerignore |
||||
|
.git |
||||
|
.gitignore |
||||
|
.env |
||||
|
*/bin |
||||
|
*/obj |
||||
|
bin |
||||
|
obj |
||||
|
README.md |
||||
|
LICENSE |
||||
|
.vscode |
||||
Loading…
Reference in new issue