From ecdf12bf903c75f52f966ac12093596081c21270 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Halil=20=C4=B0brahim=20Kalkan?= Date: Fri, 13 Aug 2021 16:40:38 +0300 Subject: [PATCH] Delete old azure-related files --- Dockerfile.EventHub.HttpApi.Host | 23 ------- Dockerfile.EventHub.IdentityServer | 26 ------- Dockerfile.EventHub.Web | 23 ------- azure-pipelines.eventhub.httpapi.host.yml | 62 ----------------- azure-pipelines.eventhub.httpapi.host2.yml | 61 ----------------- azure-pipelines.eventhub.identityserver.yml | 62 ----------------- azure-pipelines.eventhub.web.yml | 67 ------------------- azure-pipelines.yml | 61 ----------------- etc/notes/ui-design.md | 32 --------- localhost.conf | 23 ------- .../deployment.eventhub.httpapi.host.yml | 23 ------- .../deployment.eventhub.identityserver.yml | 23 ------- manifests/deployment.eventhub.web.yml | 23 ------- manifests/deployment.yml | 19 ------ manifests/service.eventhub.httpapi.host.yml | 11 --- manifests/service.eventhub.identityserver.yml | 17 ----- manifests/service.eventhub.web.yml | 11 --- manifests/service.yml | 10 --- 18 files changed, 577 deletions(-) delete mode 100644 Dockerfile.EventHub.HttpApi.Host delete mode 100644 Dockerfile.EventHub.IdentityServer delete mode 100644 Dockerfile.EventHub.Web delete mode 100644 azure-pipelines.eventhub.httpapi.host.yml delete mode 100644 azure-pipelines.eventhub.httpapi.host2.yml delete mode 100644 azure-pipelines.eventhub.identityserver.yml delete mode 100644 azure-pipelines.eventhub.web.yml delete mode 100644 azure-pipelines.yml delete mode 100644 etc/notes/ui-design.md delete mode 100644 localhost.conf delete mode 100644 manifests/deployment.eventhub.httpapi.host.yml delete mode 100644 manifests/deployment.eventhub.identityserver.yml delete mode 100644 manifests/deployment.eventhub.web.yml delete mode 100644 manifests/deployment.yml delete mode 100644 manifests/service.eventhub.httpapi.host.yml delete mode 100644 manifests/service.eventhub.identityserver.yml delete mode 100644 manifests/service.eventhub.web.yml delete mode 100644 manifests/service.yml diff --git a/Dockerfile.EventHub.HttpApi.Host b/Dockerfile.EventHub.HttpApi.Host deleted file mode 100644 index 0c354d8..0000000 --- a/Dockerfile.EventHub.HttpApi.Host +++ /dev/null @@ -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"] \ No newline at end of file diff --git a/Dockerfile.EventHub.IdentityServer b/Dockerfile.EventHub.IdentityServer deleted file mode 100644 index ecde15b..0000000 --- a/Dockerfile.EventHub.IdentityServer +++ /dev/null @@ -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"] \ No newline at end of file diff --git a/Dockerfile.EventHub.Web b/Dockerfile.EventHub.Web deleted file mode 100644 index 48f8448..0000000 --- a/Dockerfile.EventHub.Web +++ /dev/null @@ -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"] \ No newline at end of file diff --git a/azure-pipelines.eventhub.httpapi.host.yml b/azure-pipelines.eventhub.httpapi.host.yml deleted file mode 100644 index e8f71eb..0000000 --- a/azure-pipelines.eventhub.httpapi.host.yml +++ /dev/null @@ -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) - diff --git a/azure-pipelines.eventhub.httpapi.host2.yml b/azure-pipelines.eventhub.httpapi.host2.yml deleted file mode 100644 index 1804248..0000000 --- a/azure-pipelines.eventhub.httpapi.host2.yml +++ /dev/null @@ -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) - diff --git a/azure-pipelines.eventhub.identityserver.yml b/azure-pipelines.eventhub.identityserver.yml deleted file mode 100644 index f88f3b6..0000000 --- a/azure-pipelines.eventhub.identityserver.yml +++ /dev/null @@ -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) - diff --git a/azure-pipelines.eventhub.web.yml b/azure-pipelines.eventhub.web.yml deleted file mode 100644 index 3bf77dc..0000000 --- a/azure-pipelines.eventhub.web.yml +++ /dev/null @@ -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) - diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index daa3903..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -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) - diff --git a/etc/notes/ui-design.md b/etc/notes/ui-design.md deleted file mode 100644 index 516413e..0000000 --- a/etc/notes/ui-design.md +++ /dev/null @@ -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) \ No newline at end of file diff --git a/localhost.conf b/localhost.conf deleted file mode 100644 index 6a46c26..0000000 --- a/localhost.conf +++ /dev/null @@ -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 \ No newline at end of file diff --git a/manifests/deployment.eventhub.httpapi.host.yml b/manifests/deployment.eventhub.httpapi.host.yml deleted file mode 100644 index 8f063ed..0000000 --- a/manifests/deployment.eventhub.httpapi.host.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/manifests/deployment.eventhub.identityserver.yml b/manifests/deployment.eventhub.identityserver.yml deleted file mode 100644 index 3150c4c..0000000 --- a/manifests/deployment.eventhub.identityserver.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/manifests/deployment.eventhub.web.yml b/manifests/deployment.eventhub.web.yml deleted file mode 100644 index a64eae8..0000000 --- a/manifests/deployment.eventhub.web.yml +++ /dev/null @@ -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 diff --git a/manifests/deployment.yml b/manifests/deployment.yml deleted file mode 100644 index eaf7dae..0000000 --- a/manifests/deployment.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/manifests/service.eventhub.httpapi.host.yml b/manifests/service.eventhub.httpapi.host.yml deleted file mode 100644 index 3602aab..0000000 --- a/manifests/service.eventhub.httpapi.host.yml +++ /dev/null @@ -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 diff --git a/manifests/service.eventhub.identityserver.yml b/manifests/service.eventhub.identityserver.yml deleted file mode 100644 index 060bb03..0000000 --- a/manifests/service.eventhub.identityserver.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/manifests/service.eventhub.web.yml b/manifests/service.eventhub.web.yml deleted file mode 100644 index f688b01..0000000 --- a/manifests/service.eventhub.web.yml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/manifests/service.yml b/manifests/service.yml deleted file mode 100644 index 2d19ec4..0000000 --- a/manifests/service.yml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: eventhubhttpapihost -spec: - type: LoadBalancer - ports: - - port: 80 - selector: - app: eventhubhttpapihost \ No newline at end of file