|
| 1 | +// NOTE: this didn't work (docker from docker was fussy) but I think the dockerfile is worth keeping |
| 2 | +// to inform our dependencies during a CI run |
| 3 | +{ |
| 4 | + "name": "Docker from Docker", |
| 5 | + "dockerFile": "Dockerfile", |
| 6 | + "runArgs": ["--init"], |
| 7 | + "mounts": [ |
| 8 | + "source=/var/run/docker.sock,target=/var/run/docker-host.sock,type=bind", |
| 9 | + "source=${localEnv:HOME}${localEnv:USERPROFILE}/.gcp,target=/home/vscode/.gcp,type=bind,consistency=cached", |
| 10 | + "source=${localEnv:HOME}${localEnv:USERPROFILE}/.kube,target=/home/vscode/.kube,type=bind,consistency=cached" |
| 11 | + ], |
| 12 | + "overrideCommand": false, |
| 13 | + |
| 14 | + // Use this environment variable if you need to bind mount your local source code into a new container. |
| 15 | + "remoteEnv": { |
| 16 | + "LOCAL_WORKSPACE_FOLDER": "${localWorkspaceFolder}" |
| 17 | + }, |
| 18 | + |
| 19 | + // Configure tool-specific properties. |
| 20 | + "customizations": { |
| 21 | + // Configure properties specific to VS Code. |
| 22 | + "vscode": { |
| 23 | + // Add the IDs of extensions you want installed when the container is created. |
| 24 | + "extensions": [ |
| 25 | + "ms-azuretools.vscode-docker", |
| 26 | + "ms-toolsai.jupyter", |
| 27 | + "pomdtr.excalidraw-editor", |
| 28 | + "visualstudioexptteam.vscodeintellicode", |
| 29 | + "ms-vsliveshare.vsliveshare", |
| 30 | + "davidanson.vscode-markdownlint", |
| 31 | + "esbenp.prettier-vscode", |
| 32 | + "ms-python.vscode-pylance", |
| 33 | + "ms-python.python", |
| 34 | + "stkb.rewrap", |
| 35 | + "vscodevim.vim", |
| 36 | + "ms-vscode.makefile-tools" |
| 37 | + ] |
| 38 | + }, |
| 39 | + // TODO(bjb): this doesnt work |
| 40 | + "postCreateCommand": "pip3 install -r requirements.txt && python3 -m ipykernel install --user" |
| 41 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 42 | + // "forwardPorts": [], |
| 43 | + |
| 44 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 45 | + |
| 46 | + // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
| 47 | + // "remoteUser": "vscode" |
| 48 | + } |
| 49 | +} |
0 commit comments