From e093901600728617f0042efc4fd2a4a759d60823 Mon Sep 17 00:00:00 2001 From: WilcoApp Date: Mon, 9 Dec 2024 10:19:05 +0000 Subject: [PATCH] Initial commit --- .devcontainer/devcontainer.json | 8 -------- docker-compose.yml | 29 ----------------------------- webhook/Dockerfile | 17 ----------------- 3 files changed, 54 deletions(-) delete mode 100644 .devcontainer/devcontainer.json delete mode 100644 docker-compose.yml delete mode 100644 webhook/Dockerfile diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json deleted file mode 100644 index dac0f29..0000000 --- a/.devcontainer/devcontainer.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "customizations": { - "vscode": { - "extensions": ["ms-dotnettools.csdevkit"] - } - }, - "forwardPorts": [5000] -} diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index 1b8a68e..0000000 --- a/docker-compose.yml +++ /dev/null @@ -1,29 +0,0 @@ -version: "3.8" - -services: - mongo: - image: mongo:latest - container_name: mongo - ports: - - "27017:27017" - environment: - MONGO_INITDB_ROOT_USERNAME: wilco_user - MONGO_INITDB_ROOT_PASSWORD: wilco_password - - webhook: - image: mcr.microsoft.com/dotnet/aspnet:3.1 - container_name: webhook - build: - context: ./webhook - dockerfile: Dockerfile - ports: - - "5000:80" - environment: - ASPNETCORE_ENVIRONMENT: Development - FORGE_CLIENT_ID: 7WIqJXPgeiGa4fhGpG2dhQl7HdEZG8bpySJtjpOzP8DDOZfu - FORGE_CLIENT_SECRET: EIMiCRDxskNfZtpeHl9x7afLhkC07Wp2BxjzGADKeBsEGeVaSlOo3bd3pfcjZcQb - FORGE_CALLBACK_URL: http://${CODESPACE_NAME}-5000.preview.app.github.dev/api/forge/callback/oauth - FORGE_WEBHOOK_URL: http://${CODESPACE_NAME}-5000.preview.app.github.dev/api/forge/callback/webhook - OAUTH_DATABASE: mongodb://wilco_user:wilco_password@mongo:27017/webhook?authSource=admin - depends_on: - - mongo diff --git a/webhook/Dockerfile b/webhook/Dockerfile deleted file mode 100644 index 39c1d7f..0000000 --- a/webhook/Dockerfile +++ /dev/null @@ -1,17 +0,0 @@ -# Use the official .NET Core SDK image to build the app -FROM mcr.microsoft.com/dotnet/sdk:3.1 AS build -WORKDIR /app - -# Copy the csproj and restore as distinct layers -COPY *.csproj ./ -RUN dotnet restore - -# Copy the remaining files and build the app -COPY . ./ -RUN dotnet publish -c Release -o out - -# Use the official ASP.NET Core runtime image to run the app -FROM mcr.microsoft.com/dotnet/aspnet:3.1 -WORKDIR /app -COPY --from=build /app/out . -ENTRYPOINT ["dotnet", "webhook.dll"] \ No newline at end of file