|
| 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/python |
| 3 | +{ |
| 4 | + "name": "WorkflowEngine DinD Python 3.13", |
| 5 | + "build": { |
| 6 | + "dockerfile": "Dockerfile", |
| 7 | + // Args is one of arm64 or amd64 |
| 8 | + "args": { |
| 9 | + "PLATFORM": "${localEnv:PLATFORM:arm64}" |
| 10 | + } |
| 11 | + }, |
| 12 | + "features": { |
| 13 | + "ghcr.io/devcontainers/features/docker-in-docker:2": { |
| 14 | + "moby": true, |
| 15 | + "azureDnsAutoDetection": true, |
| 16 | + "installDockerBuildx": true, |
| 17 | + "installDockerComposeSwitch": true, |
| 18 | + "version": "latest", |
| 19 | + "dockerDashComposeVersion": "v2" |
| 20 | + }, |
| 21 | + "ghcr.io/devcontainers/features/git:1": { |
| 22 | + "ppa": true, |
| 23 | + "version": "os-provided" |
| 24 | + } |
| 25 | + }, |
| 26 | + // We mount bash history in an attempt to preserver history |
| 27 | + // between container restarts |
| 28 | + // (see https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history) |
| 29 | + // |
| 30 | + // The user will also need a ~/k8s-config directory (kubernetes config files) |
| 31 | + "mounts": [ |
| 32 | + "source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached", |
| 33 | + "source=${localEnv:HOME}/k8s-config,target=/k8s-config,type=bind,consistency=cached", |
| 34 | + "source=projectname-bashhistory,target=/commandhistory,type=volume" |
| 35 | + ], |
| 36 | + "customizations": { |
| 37 | + "vscode": { |
| 38 | + "extensions": [ |
| 39 | + "codezombiech.gitignore", |
| 40 | + "donjayamanne.githistory", |
| 41 | + "donjayamanne.git-extension-pack", |
| 42 | + "eamodio.gitlens", |
| 43 | + "github.vscode-github-actions", |
| 44 | + "ms-kubernetes-tools.vscode-kubernetes-tools", |
| 45 | + "ms-python.vscode-pylance", |
| 46 | + "sourcery.sourcery", |
| 47 | + "streetsidesoftware.code-spell-checker", |
| 48 | + "trond-snekvik.simple-rst", |
| 49 | + "vivaxy.vscode-conventional-commits", |
| 50 | + "yzhang.markdown-all-in-one" |
| 51 | + ] |
| 52 | + } |
| 53 | + }, |
| 54 | + "postCreateCommand": { |
| 55 | + "Install Python requirements": "pip3 install --user -r requirements.txt", |
| 56 | + "Install Pre-Commit": "pre-commit install -t commit-msg -t pre-commit", |
| 57 | + "Fix Volume Permissions": "sudo chown -R $(whoami): /commandhistory" |
| 58 | + }, |
| 59 | + "forwardPorts": [] |
| 60 | +} |
0 commit comments