Skip to content

Commit 9bec3b8

Browse files
committed
updated devcontainer so support python and node at the same time
1 parent 6085398 commit 9bec3b8

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.devcontainer/devcontainer.json

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
11
// 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
33
{
4-
"name": "Node.js",
4+
"name": "Python 3",
55
// 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+
},
713
"customizations": {
814
"vscode": {
915
"settings": {
@@ -15,17 +21,16 @@
1521
"extensions": ["learn-pack.learnpack-vscode"]
1622
}
1723
},
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"
1825

1926
// Features to add to the dev container. More info: https://containers.dev/features.
2027
// "features": {},
2128

2229
// Use 'forwardPorts' to make a list of ports inside the container available locally.
2330
// "forwardPorts": [],
2431

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-
2732
// Use 'postCreateCommand' to run commands after the container is created.
28-
// "postCreateCommand": "yarn install",
33+
// "postCreateCommand": "pip3 install --user -r requirements.txt",
2934

3035
// Configure tool-specific properties.
3136
// "customizations": {},

0 commit comments

Comments
 (0)