From 6175f71f271b42a90eb9ffbe15e1e555ce3d6b0a Mon Sep 17 00:00:00 2001 From: Bernie White Date: Fri, 26 Jul 2024 02:39:56 +1000 Subject: [PATCH] Improve dev container config (#1484) --- .devcontainer/devcontainer.json | 29 +++++++++++++++++++++++++++++ .github/dependabot.yml | 17 ++++++++++++----- .vscode/extensions.json | 2 -- 3 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..a9e0ffe --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,29 @@ +// For format details, see https://aka.ms/devcontainer.json. For config options, see the +// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node +{ + "name": "Development container for PSRule VS Code extension", + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile + "image": "mcr.microsoft.com/devcontainers/typescript-node:1-22-bookworm", + "features": { + "ghcr.io/devcontainers/features/dotnet:2": { + "version": "8.0" + }, + "ghcr.io/devcontainers/features/github-cli:1": { + "installDirectlyFromGitHubRelease": true, + "version": "latest" + }, + "ghcr.io/devcontainers/features/powershell:1": { + "version": "latest" + } + }, + "customizations": { + "vscode": { + "extensions": [ + "github.vscode-pull-request-github", + "ms-dotnettools.csdevkit", + "ms-vscode.vscode-typescript-tslint-plugin", + "eamodio.gitlens" + ] + } + } +} diff --git a/.github/dependabot.yml b/.github/dependabot.yml index ec40668..5b8ae4d 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -2,12 +2,13 @@ # Dependabot configuration # -# Please see the documentation for all configuration options: -# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# Please see the documentation for more information: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +# https://containers.dev/guide/dependabot version: 2 updates: - # Maintain dependencies for NuGet + # Maintain dependencies for NuGet. - package-ecosystem: nuget directory: '/' schedule: @@ -17,7 +18,7 @@ updates: reviewers: - microsoft/psrule - # Maintain dependencies for GitHub Actions + # Maintain dependencies for GitHub Actions. - package-ecosystem: github-actions directory: '/' schedule: @@ -27,7 +28,7 @@ updates: reviewers: - 'microsoft/psrule' - # Maintain dependencies for npm + # Maintain dependencies for npm. - package-ecosystem: npm directory: '/' schedule: @@ -36,3 +37,9 @@ updates: - 'dependencies' reviewers: - 'microsoft/psrule' + + # Maintain dev containers. + - package-ecosystem: devcontainers + directory: '/' + schedule: + interval: weekly diff --git a/.vscode/extensions.json b/.vscode/extensions.json index e031c0e..3343bd2 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -3,8 +3,6 @@ // for the documentation about the extensions.json format "recommendations": [ "ms-vscode.vscode-typescript-tslint-plugin", - "ms-azure-devops.azure-pipelines", - "ms-devlabs.extension-manifest-editor", "github.vscode-pull-request-github", "esbenp.prettier-vscode", "ms-dotnettools.csdevkit"