mirror of https://github.com/abpframework/eventhub
18 changed files with 0 additions and 577 deletions
@ -1,23 +0,0 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 80 |
|||
EXPOSE 443 |
|||
|
|||
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 dev-certs https -v -ep localhost.pfx -p e8202f07-66e5-4619-be07-72ba76fde97f |
|||
|
|||
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"] |
|||
@ -1,26 +0,0 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 80 |
|||
EXPOSE 443 |
|||
|
|||
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 dev-certs https -ep aspnetapp.pfx -p mypassword123 |
|||
RUN dotnet dev-certs https --trust |
|||
RUN dotnet dev-certs https -ep $env:USERPROFILE\.aspnet\https\aspnetapp.pfx -p mypassword123 |
|||
RUN dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p mypassword123 |
|||
|
|||
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"] |
|||
@ -1,23 +0,0 @@ |
|||
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base |
|||
WORKDIR /app |
|||
EXPOSE 80 |
|||
EXPOSE 443 |
|||
|
|||
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 dev-certs https -v -ep localhost.pfx -p e8202f07-66e5-4619-be07-72ba76fde97f |
|||
|
|||
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"] |
|||
@ -1,62 +0,0 @@ |
|||
trigger: |
|||
- dev |
|||
|
|||
variables: |
|||
|
|||
dockerRegistryServiceConnection: 'b46a670b-6940-4de5-b6b1-b06f9dd1c849' |
|||
imageRepository: 'voloeventhubhttpapihost' |
|||
containerRegistry: 'voloeventhubhttpapihost.azurecr.io' |
|||
dockerfilePath: '**/Dockerfile.EventHub.HttpApi.Host' |
|||
tag: '$(Build.BuildNumber)' |
|||
|
|||
# Agent VM image name |
|||
vmImageName: 'ubuntu-latest' |
|||
|
|||
|
|||
stages: |
|||
- stage: Build |
|||
displayName: Build stage |
|||
jobs: |
|||
- job: Build |
|||
displayName: Build |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
steps: |
|||
- task: Docker@2 |
|||
displayName: Build and push an image to container registry |
|||
inputs: |
|||
command: buildAndPush |
|||
repository: $(imageRepository) |
|||
dockerfile: $(dockerfilePath) |
|||
containerRegistry: $(dockerRegistryServiceConnection) |
|||
tags: | |
|||
$(tag) |
|||
|
|||
- upload: manifests |
|||
artifact: manifests |
|||
|
|||
- stage: Deploy |
|||
displayName: Deploy stage |
|||
dependsOn: Build |
|||
|
|||
jobs: |
|||
- deployment: Deploy |
|||
displayName: Deploy-HttpApi-Host |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
environment: 'volosofteventhub-6504.default' |
|||
strategy: |
|||
runOnce: |
|||
deploy: |
|||
steps: |
|||
|
|||
- task: KubernetesManifest@0 |
|||
displayName: Deploy to Kubernetes cluster |
|||
inputs: |
|||
action: deploy |
|||
manifests: | |
|||
$(Pipeline.Workspace)/manifests/deployment.eventhub.httpapi.host.yml |
|||
$(Pipeline.Workspace)/manifests/service.eventhub.httpapi.host.yml |
|||
containers: | |
|||
$(containerRegistry)/$(imageRepository):$(tag) |
|||
|
|||
@ -1,61 +0,0 @@ |
|||
trigger: |
|||
- dev |
|||
|
|||
variables: |
|||
dockerRegistryServiceConnection: '8a2bf690-716a-490c-8a88-d93fab12cf9d' |
|||
imageRepository: 'eventhubhttpapihost' |
|||
containerRegistry: 'eventhubregistry.azurecr.io' |
|||
dockerfilePath: '**/Dockerfile.EventHub.HttpApi.Host' |
|||
tag: '$(Build.BuildNumber)' |
|||
|
|||
# Agent VM image namedocker images |
|||
vmImageName: 'ubuntu-latest' |
|||
|
|||
|
|||
stages: |
|||
- stage: Build |
|||
displayName: Build stage |
|||
jobs: |
|||
- job: Build |
|||
displayName: Build |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
steps: |
|||
- task: Docker@2 |
|||
displayName: Build and push an image to container registry |
|||
inputs: |
|||
command: buildAndPush |
|||
repository: $(imageRepository) |
|||
dockerfile: $(dockerfilePath) |
|||
containerRegistry: $(dockerRegistryServiceConnection) |
|||
tags: | |
|||
$(tag) |
|||
|
|||
- upload: manifests |
|||
artifact: manifests |
|||
|
|||
- stage: Deploy |
|||
displayName: Deploy stage |
|||
dependsOn: Build |
|||
|
|||
jobs: |
|||
- deployment: Deploy |
|||
displayName: Deploy-HttpApi-Host |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
environment: 'volosofteventhub-6504.default' |
|||
strategy: |
|||
runOnce: |
|||
deploy: |
|||
steps: |
|||
|
|||
- task: KubernetesManifest@0 |
|||
displayName: Deploy to Kubernetes cluster |
|||
inputs: |
|||
action: deploy |
|||
manifests: | |
|||
$(Pipeline.Workspace)/manifests/deployment.eventhub.httpapi.host.yml |
|||
$(Pipeline.Workspace)/manifests/service.eventhub.httpapi.host.yml |
|||
containers: | |
|||
$(containerRegistry)/$(imageRepository):$(tag) |
|||
|
|||
@ -1,62 +0,0 @@ |
|||
trigger: |
|||
- dev |
|||
|
|||
variables: |
|||
|
|||
# Container registry service connection established during pipeline creation |
|||
dockerRegistryServiceConnection: '18b12bb9-87a3-4539-a769-7a1e371886cf' |
|||
imageRepository: 'voloeventhubidentityserver' |
|||
containerRegistry: 'voloeventhubidentityserver.azurecr.io' |
|||
dockerfilePath: '**/Dockerfile.EventHub.IdentityServer' |
|||
tag: '$(Build.BuildNumber)' |
|||
|
|||
# Agent VM image name |
|||
vmImageName: 'ubuntu-latest' |
|||
|
|||
|
|||
stages: |
|||
- stage: Build |
|||
displayName: Build stage |
|||
jobs: |
|||
- job: Build |
|||
displayName: Build |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
steps: |
|||
- task: Docker@2 |
|||
displayName: Build and push an image to container registry |
|||
inputs: |
|||
command: buildAndPush |
|||
repository: $(imageRepository) |
|||
dockerfile: $(dockerfilePath) |
|||
containerRegistry: $(dockerRegistryServiceConnection) |
|||
tags: | |
|||
$(tag) |
|||
|
|||
- publish: manifests |
|||
artifact: manifests |
|||
|
|||
- stage: Deploy |
|||
displayName: Deploy stage |
|||
dependsOn: Build |
|||
|
|||
jobs: |
|||
- deployment: Deploy |
|||
displayName: Deploy |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
environment: 'volosofteventhub-1359.default' |
|||
strategy: |
|||
runOnce: |
|||
deploy: |
|||
steps: |
|||
- task: KubernetesManifest@0 |
|||
displayName: Deploy to Kubernetes cluster |
|||
inputs: |
|||
action: deploy |
|||
manifests: | |
|||
$(Pipeline.Workspace)/manifests/deployment.eventhub.identityserver.yml |
|||
$(Pipeline.Workspace)/manifests/service.eventhub.identityserver.yml |
|||
containers: | |
|||
$(containerRegistry)/$(imageRepository):$(tag) |
|||
|
|||
@ -1,67 +0,0 @@ |
|||
trigger: |
|||
- dev |
|||
|
|||
|
|||
variables: |
|||
|
|||
# Container registry service connection established during pipeline creation |
|||
dockerRegistryServiceConnection: '855289e7-1034-4e42-90b4-38c072ecefcb' |
|||
imageRepository: 'voloeventhub' |
|||
containerRegistry: 'voloeventhub.azurecr.io' |
|||
dockerfilePath: '**/Dockerfile.EventHub.Web' |
|||
tag: '$(Build.BuildNumber)' |
|||
|
|||
|
|||
# Agent VM image name |
|||
vmImageName: 'ubuntu-latest' |
|||
|
|||
|
|||
stages: |
|||
- stage: Build |
|||
displayName: Build stage |
|||
jobs: |
|||
- job: Build |
|||
displayName: Build |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
steps: |
|||
- task: Docker@2 |
|||
displayName: Build and push an image to container registry |
|||
inputs: |
|||
command: buildAndPush |
|||
repository: $(imageRepository) |
|||
dockerfile: $(dockerfilePath) |
|||
containerRegistry: $(dockerRegistryServiceConnection) |
|||
tags: | |
|||
$(tag) |
|||
|
|||
- upload: manifests |
|||
artifact: manifests |
|||
|
|||
- stage: Deploy |
|||
displayName: Deploy stage |
|||
dependsOn: Build |
|||
|
|||
jobs: |
|||
- deployment: Deploy |
|||
displayName: Deploy-EventHub-Web |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
environment: 'volosofteventhub-3839.default' |
|||
strategy: |
|||
runOnce: |
|||
deploy: |
|||
steps: |
|||
|
|||
|
|||
- task: KubernetesManifest@0 |
|||
displayName: Deploy to Kubernetes cluster |
|||
inputs: |
|||
action: deploy |
|||
manifests: | |
|||
$(Pipeline.Workspace)/manifests/deployment.eventhub.web.yml |
|||
$(Pipeline.Workspace)/manifests/service.eventhub.web.yml |
|||
|
|||
containers: | |
|||
$(containerRegistry)/$(imageRepository):$(tag) |
|||
|
|||
@ -1,61 +0,0 @@ |
|||
trigger: |
|||
- dev |
|||
|
|||
variables: |
|||
dockerRegistryServiceConnection: 'efbb038e-4f76-4833-a538-fbd8ecb7c545' |
|||
imageRepository: 'eventhubhttpapihost' |
|||
containerRegistry: 'eventhubregistry.azurecr.io' |
|||
dockerfilePath: '**/Dockerfile.EventHub.HttpApi.Host' |
|||
tag: '$(Build.BuildNumber)' |
|||
|
|||
# Agent VM image namedocker images |
|||
vmImageName: 'ubuntu-latest' |
|||
|
|||
|
|||
stages: |
|||
- stage: Build |
|||
displayName: Build stage |
|||
jobs: |
|||
- job: Build |
|||
displayName: Build |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
steps: |
|||
- task: Docker@2 |
|||
displayName: Build and push an image to container registry |
|||
inputs: |
|||
command: buildAndPush |
|||
repository: $(imageRepository) |
|||
dockerfile: $(dockerfilePath) |
|||
containerRegistry: $(dockerRegistryServiceConnection) |
|||
tags: | |
|||
$(tag) |
|||
|
|||
- upload: manifests |
|||
artifact: manifests |
|||
|
|||
- stage: Deploy |
|||
displayName: Deploy stage |
|||
dependsOn: Build |
|||
|
|||
jobs: |
|||
- deployment: Deploy |
|||
displayName: Deploy-HttpApi-Host |
|||
pool: |
|||
vmImage: $(vmImageName) |
|||
environment: 'volosofteventhub-2042' |
|||
strategy: |
|||
runOnce: |
|||
deploy: |
|||
steps: |
|||
|
|||
- task: KubernetesManifest@0 |
|||
displayName: Deploy to Kubernetes cluster |
|||
inputs: |
|||
action: deploy |
|||
manifests: | |
|||
$(Pipeline.Workspace)/manifests/deployment.eventhub.httpapi.host.yml |
|||
$(Pipeline.Workspace)/manifests/service.eventhub.httpapi.host.yml |
|||
containers: | |
|||
$(containerRegistry)/$(imageRepository):$(tag) |
|||
|
|||
@ -1,32 +0,0 @@ |
|||
# UI Design Notes |
|||
|
|||
## Implementing the Design |
|||
|
|||
### Overall / Layout |
|||
|
|||
* Home & Events are separated, so we should create a separation in the solution |
|||
|
|||
### Home Page |
|||
|
|||
* Search area: |
|||
* Language selection |
|||
* Location (country / city) search / with online option |
|||
* When (date range selection) |
|||
|
|||
### Events Page |
|||
|
|||
* Search area: |
|||
* Language selection |
|||
* Location (country / city) search / with online option |
|||
* When (date range selection) |
|||
|
|||
## Features |
|||
|
|||
### Should Implement for the Design |
|||
|
|||
* ... |
|||
|
|||
### Plan for Future |
|||
|
|||
* Event & Organization Categories |
|||
* Event & Organization Tags (use the tagging system of CMS Kit) |
|||
@ -1,23 +0,0 @@ |
|||
[req] |
|||
default_bits = 2048 |
|||
default_keyfile = localhost.key |
|||
distinguished_name = req_distinguished_name |
|||
req_extensions = req_ext |
|||
x509_extensions = v3_ca |
|||
|
|||
[req_distinguished_name] |
|||
commonName = Common Name (e.g. server FQDN or YOUR name) |
|||
commonName_default = localhost |
|||
commonName_max = 64 |
|||
|
|||
[req_ext] |
|||
subjectAltName = @alt_names |
|||
|
|||
[v3_ca] |
|||
subjectAltName = @alt_names |
|||
basicConstraints = critical, CA:false |
|||
keyUsage = keyCertSign, cRLSign, digitalSignature,keyEncipherment |
|||
|
|||
[alt_names] |
|||
DNS.1 = localhost |
|||
DNS.2 = 127.0.0.1 |
|||
@ -1,23 +0,0 @@ |
|||
apiVersion: apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: volosoft-eventhub-httpapi-host-deployment |
|||
spec: |
|||
selector: |
|||
matchLabels: |
|||
app: volosoft-eventhub-httpapi-host-pod |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: volosoft-eventhub-httpapi-host-pod |
|||
spec: |
|||
containers: |
|||
- name: volosoft-eventhub-httpapi-host-container |
|||
image: voloeventhubhttpapihost.azurecr.io/voloeventhubhttpapihost |
|||
imagePullPolicy: Always |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 80 |
|||
@ -1,23 +0,0 @@ |
|||
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 |
|||
imagePullPolicy: Always |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 80 |
|||
@ -1,23 +0,0 @@ |
|||
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 |
|||
imagePullPolicy: Always |
|||
resources: |
|||
limits: |
|||
memory: "128Mi" |
|||
cpu: "500m" |
|||
ports: |
|||
- containerPort: 80 |
|||
@ -1,19 +0,0 @@ |
|||
apiVersion : apps/v1 |
|||
kind: Deployment |
|||
metadata: |
|||
name: eventhubhttpapihost |
|||
spec: |
|||
replicas: 1 |
|||
selector: |
|||
matchLabels: |
|||
app: eventhubhttpapihost |
|||
template: |
|||
metadata: |
|||
labels: |
|||
app: eventhubhttpapihost |
|||
spec: |
|||
containers: |
|||
- name: eventhubhttpapihost |
|||
image: eventhubregistry.azurecr.io/eventhubhttpapihost |
|||
ports: |
|||
- containerPort: 80 |
|||
@ -1,11 +0,0 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-httpapi-host-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-httpapi-host-pod |
|||
ports: |
|||
- port: 5002 |
|||
targetPort: 80 |
|||
type: LoadBalancer |
|||
@ -1,17 +0,0 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-identityserver-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-identityserver-pod |
|||
ports: |
|||
- name: http |
|||
port: 5001 |
|||
protocol: TCP |
|||
targetPort: 80 |
|||
- name: https |
|||
port: 5000 |
|||
targetPort: 443 |
|||
protocol: TCP |
|||
type: LoadBalancer |
|||
@ -1,11 +0,0 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: volosoft-eventhub-web-service |
|||
spec: |
|||
selector: |
|||
app: volosoft-eventhub-web-pod |
|||
ports: |
|||
- port: 8080 |
|||
targetPort: 80 |
|||
type: LoadBalancer |
|||
@ -1,10 +0,0 @@ |
|||
apiVersion: v1 |
|||
kind: Service |
|||
metadata: |
|||
name: eventhubhttpapihost |
|||
spec: |
|||
type: LoadBalancer |
|||
ports: |
|||
- port: 80 |
|||
selector: |
|||
app: eventhubhttpapihost |
|||
Loading…
Reference in new issue