|
| 1 | +// For format details, see https://aka.ms/devcontainer.json. For config options, see the |
| 2 | +{ |
| 3 | + "name": "VSC Build Environment", |
| 4 | + // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile |
| 5 | + "build": { |
| 6 | + "dockerfile": "Containerfile" |
| 7 | + }, |
| 8 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | + "features": { |
| 10 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 11 | + "installZsh": "true", |
| 12 | + "username": "vscode", |
| 13 | + "userUid": "1000", |
| 14 | + "userGid": "1000", |
| 15 | + "upgradePackages": "true" |
| 16 | + }, |
| 17 | + "ghcr.io/devcontainers/features/node:1": { |
| 18 | + "version": "20.18.2" |
| 19 | + }, |
| 20 | + "ghcr.io/devcontainers/features/git:1": { |
| 21 | + "version": "latest", |
| 22 | + "ppa": "false" |
| 23 | + }, |
| 24 | + "ghcr.io/devcontainers/features/python:1": { |
| 25 | + "version": "3.11" |
| 26 | + }, |
| 27 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 28 | + "ghcr.io/devcontainers/features/docker-in-docker:2": { |
| 29 | + "dockerDashComposeVersion": "none" |
| 30 | + } |
| 31 | + }, |
| 32 | + // Uncomment if you have `sed` issues due to VirtFs |
| 33 | + // "mounts": [ |
| 34 | + // "type=volume,source=vscode-src,target=${containerWorkspaceFolder}/vscode" |
| 35 | + // ], |
| 36 | + // These are better placed in the .env file |
| 37 | + // "containerEnv": { |
| 38 | + // "npm_config_arch": "ppc64", |
| 39 | + // "_VSCODE_ARCH": "ppc64le" |
| 40 | + // }, |
| 41 | + "runArgs": [ |
| 42 | + "--security-opt", |
| 43 | + "label=disable", |
| 44 | + "--env-file", |
| 45 | + ".env" // a place to put your GH_TOKEN |
| 46 | + ], |
| 47 | + "capAdd": [ |
| 48 | + "CAP_AUDIT_WRITE" |
| 49 | + ], |
| 50 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 51 | + // "forwardPorts": [], |
| 52 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 53 | + // "postCreateCommand": "yarn install", |
| 54 | + "onCreateCommand": "sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc", // you will also need the DISABLE_QEMU=true env var |
| 55 | + // Configure tool-specific properties. |
| 56 | + "customizations": { |
| 57 | + // Configure properties specific to VS Code. |
| 58 | + "vscode": { |
| 59 | + // Set *default* container specific settings.json values on container create. |
| 60 | + "settings": {}, |
| 61 | + // Add the IDs of extensions you want installed when the container is created. |
| 62 | + "extensions": [ |
| 63 | + "dbaeumer.vscode-eslint", |
| 64 | + "ms-azuretools.vscode-docker", |
| 65 | + "github.vscode-github-actions" |
| 66 | + ] |
| 67 | + } |
| 68 | + }, |
| 69 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 70 | + "remoteUser": "vscode" |
| 71 | +} |
0 commit comments