|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/php |
| 3 | +{ |
| 4 | + "name": "PHP Coding Standard", |
| 5 | + |
| 6 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 7 | + "image": "mcr.microsoft.com/devcontainers/base:debian", |
| 8 | + |
| 9 | + "remoteEnv": { |
| 10 | + // https://github.com/devcontainers/features/tree/main/src/docker-outside-of-docker |
| 11 | + // Following settings are required for Bind Mounts to work with Docker outside of Docker |
| 12 | + "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}", |
| 13 | + "GITHUB_TOKEN": "${localEnv:GITHUB_TOKEN}" |
| 14 | + }, |
| 15 | + |
| 16 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 17 | + "features": { |
| 18 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 19 | + "configureZshAsDefaultShell": true |
| 20 | + }, |
| 21 | + "ghcr.io/devcontainers/features/php:1": { |
| 22 | + "version": "8.5" |
| 23 | + }, |
| 24 | + "ghcr.io/devcontainers/features/docker-outside-of-docker:1": { |
| 25 | + "moby": false |
| 26 | + }, |
| 27 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 28 | + "ghcr.io/devcontainers-extra/features/act:1": {} |
| 29 | + }, |
| 30 | + |
| 31 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 32 | + // "forwardPorts": [], |
| 33 | + |
| 34 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 35 | + "onCreateCommand": "docker pull catthehacker/ubuntu:act-latest", |
| 36 | + "postCreateCommand": "composer install", |
| 37 | + |
| 38 | + // Configure tool-specific properties. |
| 39 | + "customizations": { |
| 40 | + "codespaces": { |
| 41 | + "openFiles": ["README.md"] |
| 42 | + }, |
| 43 | + "vscode": { |
| 44 | + "extensions": [ |
| 45 | + "junstyle.php-cs-fixer", |
| 46 | + "bierner.markdown-preview-github-styles", |
| 47 | + "davidanson.vscode-markdownlint", |
| 48 | + "editorconfig.editorconfig", |
| 49 | + "github.copilot", |
| 50 | + "github.copilot-chat", |
| 51 | + "github.vscode-github-actions", |
| 52 | + "github.vscode-pull-request-github", |
| 53 | + "me-dutour-mathieu.vscode-github-actions", |
| 54 | + "redhat.vscode-yaml", |
| 55 | + "yzhang.markdown-all-in-one" |
| 56 | + ], |
| 57 | + "settings": { |
| 58 | + "editor.formatOnSave": true, |
| 59 | + "[php]": { |
| 60 | + "editor.tabSize": 4, |
| 61 | + "editor.defaultFormatter": "junstyle.php-cs-fixer" |
| 62 | + }, |
| 63 | + "php-cs-fixer.executablePath": "${workspaceFolder}/vendor/bin/php-cs-fixer", |
| 64 | + "php-cs-fixer.config": "${workspaceFolder}/.php-cs-fixer.dist.php", |
| 65 | + "php-cs-fixer.onsave": true, |
| 66 | + "markdown.extension.list.indentationSize": "adaptive", |
| 67 | + "markdown.extension.italic.indicator": "_", |
| 68 | + "markdown.extension.orderedList.marker": "one" |
| 69 | + } |
| 70 | + } |
| 71 | + } |
| 72 | + |
| 73 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 74 | + // "remoteUser": "root" |
| 75 | +} |
0 commit comments