Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 3560379

Browse files
authored
Merge pull request #58 from microsoft/clantz/settings-in-devcontainerjson
Switch dev containers to use new "settings" property
2 parents be9e2aa + 15589cb commit 3560379

File tree

88 files changed

+468
-422
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+468
-422
lines changed

container-templates/docker-compose/.devcontainer/devcontainer.json

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,16 @@
1313
// connected. This is typically a volume mount in .devcontainer/docker-compose.yml
1414
"workspaceFolder": "/workspace",
1515

16-
// Add any extensions you want auto-installed here.
17-
"extensions": [],
16+
// Uncomment this like if you want to keep your containers running after VS Code shuts down.
17+
// "shutdownAction": "none",
1818

19-
// Update the value of this line to 'none' if you want to keep your containers running after VS Code shuts down.
20-
"shutdownAction": "stopCompose",
19+
// Uncomment the next line if you want to add in default container specific settings.json values
20+
// "settings": { "workbench.colorTheme": "Quiet Light" },
2121

2222
// Uncomment the next line to run commands after the container is created.
2323
// "postCreateCommand": ["uname -a"]
24-
24+
25+
// Add the IDs of any extensions you want installed in the array below.
26+
"extensions": []
27+
2528
}

container-templates/dockerfile/.devcontainer/devcontainer.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// Update the 'dockerFile' property if you aren't using the standard 'Dockerfile' filename.
66
"dockerFile": "Dockerfile",
77

8-
// Use the optional 'appPort' property to publish any ports you want to access.
9-
"appPort": [],
10-
11-
// Add any extensions you want auto-installed here.
12-
"extensions": [],
13-
148
// The optional 'runArgs' property can be used to specify additional runtime arguments.
159
"runArgs": [
1610
// Uncomment the next line if you want to use Docker from the container. See the docker-in-docker definition for details.
@@ -21,6 +15,16 @@
2115
// "--security-opt", "seccomp=unconfined"
2216
],
2317

18+
// Uncomment the next line if you want to publish any ports.
19+
// "appPort": [],
20+
21+
// Uncomment the next line if you want to add in default container specific settings.json values
22+
// "settings": { "workbench.colorTheme": "Quiet Light" },
23+
2424
// Uncomment the next line to run commands after the container is created.
25-
// "postCreateCommand": ["uname -a"]
25+
// "postCreateCommand": "uname -a",
26+
27+
// Add the IDs of any extensions you want installed in the array below.
28+
"extensions": []
29+
2630
}

container-templates/image/.devcontainer/devcontainer.json

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@
55
// Update the 'image' property with your Docker image name.
66
"image": "ubuntu:bionic",
77

8-
// Use the optional 'appPort' property to publish any ports you want to access.
9-
"appPort": [],
10-
11-
// Add any extensions you want auto-installed here.
12-
"extensions": [],
13-
148
// The optional 'runArgs' property can be used to specify additional runtime arguments.
159
"runArgs": [
1610
// Uncomment the next line if you want to use Docker from the container. See the docker-in-docker definition for details.
@@ -21,6 +15,15 @@
2115
// "--security-opt", "seccomp=unconfined"
2216
],
2317

18+
// Uncomment the next line if you want to publish any ports.
19+
// "appPort": [],
20+
21+
// Uncomment the next line if you want to add in default container specific settings.json values
22+
// "settings": { "workbench.colorTheme": "Quiet Light" },
23+
2424
// Uncomment the next line to run commands after the container is created.
25-
// "postCreateCommand": ["uname -a"]
25+
// "postCreateCommand": "uname -a",
26+
27+
// Add the IDs of any extensions you want installed in the array below.
28+
"extensions": []
2629
}
Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,24 @@
11
{
22
"name": "Azure Ansible",
33
"dockerFile": "Dockerfile",
4-
"extensions": [
5-
"vscoss.vscode-ansible",
6-
"redhat.vscode-yaml",
7-
"ms-vscode.azurecli"
8-
],
94
"runArgs": [
10-
"-v",
11-
"/var/run/docker.sock:/var/run/docker.sock"
5+
// Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust.
6+
// "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined",
7+
"-v", "/var/run/docker.sock:/var/run/docker.sock"
128
],
9+
1310
// Uncomment the next line if you want to publish any ports.
1411
// "appPort": [],
12+
13+
// Uncomment the next line if you want to add in default container specific settings.json values
14+
// "settings": { "workbench.colorTheme": "Quiet Light" },
15+
1516
// Uncomment the next line to run commands after the container is created.
16-
// "postCreateCommand": "ansible --version"
17+
// "postCreateCommand": "ansible --version",
18+
19+
"extensions": [
20+
"vscoss.vscode-ansible",
21+
"redhat.vscode-yaml",
22+
"ms-vscode.azurecli"
23+
]
1724
}
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
{
22
"name": "Azure CLI",
33
"dockerFile": "Dockerfile",
4-
"extensions": [
5-
"ms-vscode.azurecli"
6-
],
74

5+
// Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust.
6+
// "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ],
7+
88
// Uncomment the next line if you want to publish any ports.
99
// "appPort": [],
1010

11+
// Uncomment the next line if you want to add in default container specific settings.json values
12+
// "settings": { "workbench.colorTheme": "Quiet Light" },
13+
1114
// Uncomment the next line to run commands after the container is created.
12-
// "postCreateCommand": "az --version"
15+
// "postCreateCommand": "az --version",
16+
17+
"extensions": [
18+
"ms-vscode.azurecli"
19+
]
20+
1321
}

containers/azure-functions-dotnetcore-2.1/.devcontainer/devcontainer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"name": "Azure Functions & C# (.NET Core 2.1)",
33
"dockerFile": "Dockerfile",
44
"appPort": 7071,
5+
6+
// Uncomment the next line if you want to add in default container specific settings.json values
7+
// "settings": { "workbench.colorTheme": "Quiet Light" },
8+
9+
// Uncomment the next line to run commands after the container is created.
10+
// "postCreateCommand": "dotnet restore",
11+
512
"extensions": [
613
"ms-azuretools.vscode-azurefunctions",
714
"ms-vscode.csharp"
8-
],
9-
10-
// Uncomment the next line to run commands after the container is created.
11-
// "postCreateCommand": "dotnet restore"
15+
]
1216
}

containers/azure-functions-dotnetcore-latest/.devcontainer/devcontainer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"name": "Azure Functions & C# (.NET Core Latest)",
33
"dockerFile": "Dockerfile",
44
"appPort": 7071,
5+
6+
// Uncomment the next line if you want to add in default container specific settings.json values
7+
// "settings": { "workbench.colorTheme": "Quiet Light" },
8+
9+
// Uncomment the next line to run commands after the container is created.
10+
// "postCreateCommand": "dotnet restore",
11+
512
"extensions": [
613
"ms-azuretools.vscode-azurefunctions",
714
"ms-vscode.csharp"
8-
],
9-
10-
// Uncomment the next line to run commands after the container is created.
11-
// "postCreateCommand": "dotnet restore"
15+
]
1216
}

containers/azure-functions-java-8/.devcontainer/devcontainer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"name": "Azure Functions & Java 8",
33
"dockerFile": "Dockerfile",
44
"appPort": 7071,
5+
6+
// Uncomment the next line if you want to add in default container specific settings.json values
7+
// "settings": { "workbench.colorTheme": "Quiet Light" },
8+
9+
// Uncomment the next line to run commands after the container is created.
10+
// "postCreateCommand": "java -version",
11+
512
"extensions": [
613
"ms-azuretools.vscode-azurefunctions",
714
"vscjava.vscode-java-pack"
8-
],
9-
10-
// Uncomment the next line to run commands after the container is created.
11-
// "postCreateCommand": "java -version"
15+
]
1216
}

containers/azure-functions-node-8/.devcontainer/devcontainer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"name": "Azure Functions & Node.js 8",
33
"dockerFile": "Dockerfile",
44
"appPort": 7071,
5+
6+
// Uncomment the next line if you want to add in default container specific settings.json values
7+
// "settings": { "workbench.colorTheme": "Quiet Light" },
8+
9+
// Uncomment the next line to run commands after the container is created.
10+
// "postCreateCommand": "npm install",
11+
512
"extensions": [
613
"ms-azuretools.vscode-azurefunctions",
714
"dbaeumer.vscode-eslint"
8-
],
9-
10-
// Uncomment the next line to run commands after the container is created.
11-
// "postCreateCommand": "npm install"
15+
]
1216
}

containers/azure-functions-node-lts/.devcontainer/devcontainer.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@
22
"name": "Azure Functions & Node.js (latest LTS)",
33
"dockerFile": "Dockerfile",
44
"appPort": 7071,
5+
6+
// Uncomment the next line if you want to add in default container specific settings.json values
7+
// "settings": { "workbench.colorTheme": "Quiet Light" },
8+
9+
// Uncomment the next line to run commands after the container is created.
10+
// "postCreateCommand": "npm install",
11+
512
"extensions": [
613
"ms-azuretools.vscode-azurefunctions",
714
"dbaeumer.vscode-eslint"
8-
],
9-
10-
// Uncomment the next line to run commands after the container is created.
11-
// "postCreateCommand": "npm install"
15+
]
1216
}

0 commit comments

Comments
 (0)