|
1 | 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/javascript-node |
| 2 | +// README at: https://github.com/devcontainers/templates/tree/main/src/python |
3 | 3 | {
|
4 | | - "name": "Node.js", |
| 4 | + "name": "Python 3", |
5 | 5 | // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
6 | | - "image": "mcr.microsoft.com/devcontainers/javascript-node:0-16", |
| 6 | + "image": "mcr.microsoft.com/devcontainers/python:0-3.10", |
| 7 | + "features": { |
| 8 | + "ghcr.io/devcontainers/features/node:1": { |
| 9 | + "nodeGypDependencies": true, |
| 10 | + "version": "16" |
| 11 | + } |
| 12 | + }, |
7 | 13 | "customizations": {
|
8 | 14 | "vscode": {
|
9 | 15 | "settings": {
|
|
15 | 21 | "extensions": ["learn-pack.learnpack-vscode"]
|
16 | 22 | }
|
17 | 23 | },
|
| 24 | + "onCreateCommand": "pip3 install pytest==4.6.0 pytest-testdox mock && npm i @learnpack/learnpack@2.1.20 -g && learnpack plugins:install @learnpack/python@1.0.0" |
18 | 25 |
|
19 | 26 | // Features to add to the dev container. More info: https://containers.dev/features.
|
20 | 27 | // "features": {},
|
21 | 28 |
|
22 | 29 | // Use 'forwardPorts' to make a list of ports inside the container available locally.
|
23 | 30 | // "forwardPorts": [],
|
24 | 31 |
|
25 | | - "onCreateCommand": "pip3 install pytest==4.6.0 pytest-testdox mock && npm i @learnpack/learnpack@2.1.20 -g && learnpack plugins:install @learnpack/python@1.0.0" |
26 | | - |
27 | 32 | // Use 'postCreateCommand' to run commands after the container is created.
|
28 | | - // "postCreateCommand": "yarn install", |
| 33 | + // "postCreateCommand": "pip3 install --user -r requirements.txt", |
29 | 34 |
|
30 | 35 | // Configure tool-specific properties.
|
31 | 36 | // "customizations": {},
|
|
0 commit comments