diff --git a/.devcontainer/devcontainer.json b/.devcontainer/docker-in-docker/devcontainer.json similarity index 96% rename from .devcontainer/devcontainer.json rename to .devcontainer/docker-in-docker/devcontainer.json index 2513ae8..9725cc4 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/docker-in-docker/devcontainer.json @@ -1,7 +1,7 @@ // For format details, see https://aka.ms/devcontainer.json. For config options, see the // README at: https://github.com/devcontainers/templates/tree/main/src/docker-in-docker { - "name": "Docker in Docker", + "name": "Act only (Docker in Docker)", "image": "mcr.microsoft.com/devcontainers/base:bullseye", "features": { "ghcr.io/devcontainers/features/common-utils:1": { diff --git a/.devcontainer/dotnet6/README.md b/.devcontainer/dotnet6/README.md new file mode 100644 index 0000000..ec19444 --- /dev/null +++ b/.devcontainer/dotnet6/README.md @@ -0,0 +1 @@ +refs https://github.com/github/dotnet-codespaces diff --git a/.devcontainer/dotnet6/devcontainer.json b/.devcontainer/dotnet6/devcontainer.json new file mode 100644 index 0000000..5fcab90 --- /dev/null +++ b/.devcontainer/dotnet6/devcontainer.json @@ -0,0 +1,58 @@ +{ + "name": ".NET 6 in Codespaces", + "image": "mcr.microsoft.com/dotnet/sdk:6.0", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, + "ghcr.io/devcontainers/features/github-cli:1": { + "version": "2" + }, + "ghcr.io/devcontainers/features/powershell:1": { + "version": "latest" + }, + "ghcr.io/azure/azure-dev/azd:0": { + "version": "latest" + }, + "ghcr.io/devcontainers/features/common-utils:2": {} + // , + // "ghcr.io/devcontainers/features/dotnet:2": { + // "version": "none", + // "dotnetRuntimeVersions": "7.0", + // "aspNetCoreRuntimeVersions": "7.0" + // } + }, + "customizations": { + "vscode": { + "extensions": [ + "ms-vscode.vscode-node-azure-pack", + "GitHub.copilot", + "GitHub.vscode-github-actions", + // "ms-dotnettools.vscode-dotnet-runtime", + // "ms-dotnettools.csdevkit", + "ms-dotnettools.csharp" + ] + } + }, + // "forwardPorts": [ + // 8080, + // 8081 + // ], + // "postCreateCommand": "cd ./SampleApp && dotnet restore", + // "hostRequirements": { + // "memory": "8gb", + // "cpus": 4 + // }, + "remoteEnv": { + "DOTNET_MULTILEVEL_LOOKUP": "0", + "TARGET": "net6.0" + } + // "portsAttributes": { + // "8080": { + // "label": "Weather API", + // "onAutoForward": "notify" + // }, + // "8081": { + // "label": "Weather Front End", + // "onAutoForward": "notify" + // } + // } +} \ No newline at end of file diff --git a/.devcontainer/dotnet8/README.md b/.devcontainer/dotnet8/README.md new file mode 100644 index 0000000..ec19444 --- /dev/null +++ b/.devcontainer/dotnet8/README.md @@ -0,0 +1 @@ +refs https://github.com/github/dotnet-codespaces diff --git a/.devcontainer/dotnet8/devcontainer.json b/.devcontainer/dotnet8/devcontainer.json new file mode 100644 index 0000000..45869ab --- /dev/null +++ b/.devcontainer/dotnet8/devcontainer.json @@ -0,0 +1,57 @@ +{ + "name": ".NET 8 in Codespaces", + "image": "mcr.microsoft.com/dotnet/sdk:8.0", + "features": { + "ghcr.io/devcontainers/features/docker-in-docker:2": {}, + "ghcr.io/devcontainers/features/github-cli:1": { + "version": "2" + }, + "ghcr.io/devcontainers/features/powershell:1": { + "version": "latest" + }, + "ghcr.io/azure/azure-dev/azd:0": { + "version": "latest" + }, + "ghcr.io/devcontainers/features/common-utils:2": {}, + "ghcr.io/devcontainers/features/dotnet:2": { + "version": "none", + "dotnetRuntimeVersions": "7.0", + "aspNetCoreRuntimeVersions": "7.0" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "ms-vscode.vscode-node-azure-pack", + "GitHub.copilot", + "GitHub.vscode-github-actions", + "ms-dotnettools.vscode-dotnet-runtime", + "ms-dotnettools.csdevkit", + "ms-dotnettools.csharp" + ] + } + }, + // "forwardPorts": [ + // 8080, + // 8081 + // ], + // "postCreateCommand": "cd ./SampleApp && dotnet restore", + // "hostRequirements": { + // "memory": "8gb", + // "cpus": 4 + // }, + "remoteEnv": { + "DOTNET_MULTILEVEL_LOOKUP": "0", + "TARGET": "net8.0" + } + // "portsAttributes": { + // "8080": { + // "label": "Weather API", + // "onAutoForward": "notify" + // }, + // "8081": { + // "label": "Weather Front End", + // "onAutoForward": "notify" + // } + // } +} \ No newline at end of file diff --git a/.devcontainer/express/README.md b/.devcontainer/express/README.md new file mode 100644 index 0000000..d247b1a --- /dev/null +++ b/.devcontainer/express/README.md @@ -0,0 +1 @@ +refs https://github.com/github/codespaces-express diff --git a/.devcontainer/express/devcontainer.json b/.devcontainer/express/devcontainer.json new file mode 100644 index 0000000..d94808e --- /dev/null +++ b/.devcontainer/express/devcontainer.json @@ -0,0 +1,27 @@ +{ + "name": "Express in Codespaces", + "image": "mcr.microsoft.com/devcontainers/universal:2", + // "hostRequirements": { + // "cpus": 4 + // }, + "waitFor": "onCreateCommand", + "updateContentCommand": "npm install", + "postCreateCommand": "", + "postAttachCommand": { + "server": "npm start" + }, + // "customizations": { + // "codespaces": { + // "openFiles": [ + // "index.js" + // ] + // } + // }, + "portsAttributes": { + "3000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [3000] + } \ No newline at end of file diff --git a/.devcontainer/php/README.md b/.devcontainer/php/README.md new file mode 100644 index 0000000..4f3c55a --- /dev/null +++ b/.devcontainer/php/README.md @@ -0,0 +1 @@ +refs https://github.com/microsoft/vscode-remote-try-php diff --git a/.devcontainer/php/devcontainer.json b/.devcontainer/php/devcontainer.json new file mode 100644 index 0000000..a07a735 --- /dev/null +++ b/.devcontainer/php/devcontainer.json @@ -0,0 +1,35 @@ +{ + "name": "PHP in Codespaces", + "image": "mcr.microsoft.com/devcontainers/php:1-8.2", + // "hostRequirements": { + // "cpus": 4 + // }, + "waitFor": "onCreateCommand", + // "updateContentCommand": "pip install -r requirements.txt && python manage.py migrate", + // "postCreateCommand": "cp .env.example .env", + // "postAttachCommand": { + // "server": "python manage.py runserver" + // }, + "customizations": { + // "codespaces": { + // "openFiles": [ + // "hello_world/templates/index.html" + // ] + // }, + "vscode": { + "extensions": [ + "xdebug.php-pack", + "bmewburn.vscode-intelephense-client" + ] + } + }, + "portsAttributes": { + "8000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [ + 8000 + ] +} \ No newline at end of file diff --git a/.devcontainer/python/README.md b/.devcontainer/python/README.md new file mode 100644 index 0000000..7e2af6a --- /dev/null +++ b/.devcontainer/python/README.md @@ -0,0 +1 @@ +refs https://github.com/github/codespaces-django diff --git a/.devcontainer/python/devcontainer.json b/.devcontainer/python/devcontainer.json new file mode 100644 index 0000000..c16666f --- /dev/null +++ b/.devcontainer/python/devcontainer.json @@ -0,0 +1,34 @@ +{ + "name": "Python in Codespaces", + "image": "mcr.microsoft.com/devcontainers/universal:2", + // "hostRequirements": { + // "cpus": 4 + // }, + "waitFor": "onCreateCommand", + // "updateContentCommand": "pip install -r requirements.txt && python manage.py migrate", + // "postCreateCommand": "cp .env.example .env", + // "postAttachCommand": { + // "server": "python manage.py runserver" + // }, + "customizations": { + // "codespaces": { + // "openFiles": [ + // "hello_world/templates/index.html" + // ] + // }, + "vscode": { + "extensions": [ + "ms-python.python" + ] + } + }, + "portsAttributes": { + "8000": { + "label": "Application", + "onAutoForward": "openPreview" + } + }, + "forwardPorts": [ + 8000 + ] +} \ No newline at end of file diff --git a/.github/workflows/net80-eshop.yml b/.github/workflows/net80-eshop.yml new file mode 100644 index 0000000..578d023 --- /dev/null +++ b/.github/workflows/net80-eshop.yml @@ -0,0 +1,38 @@ +# https://github.com/dotnet/eshop +name: Build eshop + +on: + workflow_dispatch: + inputs: + checkout-version: + description: actions/checkout version + required: true + type: choice + options: + - v3 + - v4 + +env: + REPOSITORY: dotnet/eshop + +jobs: + build-eshop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + repository: ${{ env.REPOSITORY }} + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '8.0.x' + - name: Setup workload + run: | + dotnet workload update + dotnet workload install aspire + - name: Restore + run: | + dotnet restore eShop.Web.slnf + - name: Build + run: | + dotnet build eShop.Web.slnf diff --git a/.gitignore b/.gitignore index 2d40093..0c02e4b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ act/payload.json act/.secrets +.mono/