From bb8f87c4b8db51838172b2a46c8ededceb38de89 Mon Sep 17 00:00:00 2001 From: Chuck Lantz Date: Wed, 10 Jul 2019 16:03:51 -0700 Subject: [PATCH] Revert "Merge pull request #100 from microsoft/clantz/comment-tweaks" This reverts commit c078b6406e0580afe5a9045f297708ddf44649c0, reversing changes made to 76670771bf1787319470255fb3da93dc163f6ee9. --- CONTRIBUTING.md | 2 +- .../.devcontainer/docker-compose.yml | 8 +++---- .../.devcontainer/devcontainer.json | 10 ++++---- .../image/.devcontainer/devcontainer.json | 8 +++++-- .../.devcontainer/devcontainer.json | 14 ++--------- .../.devcontainer/devcontainer.json | 9 ++------ .../azure-cli/.devcontainer/devcontainer.json | 9 ++------ .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 20 +++++++--------- .../.devcontainer/devcontainer.json | 11 ++++----- .../.devcontainer/devcontainer.json | 15 +++--------- .../bazel/.devcontainer/devcontainer.json | 8 ++----- .../cpp/.devcontainer/devcontainer.json | 10 ++++---- .../dart/.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 9 ++------ .../.devcontainer/docker-compose.yml | 8 +++---- .../.devcontainer/devcontainer.json | 7 ++---- .../.devcontainer/devcontainer.json | 4 ++-- .../.devcontainer/docker-compose.yml | 6 ++--- containers/docker-in-docker-compose/README.md | 4 ++-- .../.devcontainer/devcontainer.json | 10 +++----- containers/docker-in-docker/README.md | 4 ++-- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- containers/go/.devcontainer/devcontainer.json | 6 ++--- .../java-11/.devcontainer/devcontainer.json | 3 --- .../java-12/.devcontainer/devcontainer.json | 5 +--- .../.devcontainer/devcontainer.json | 5 +--- .../java-8/.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/docker-compose.yml | 5 ++-- .../.devcontainer/docker-compose.yml | 5 ++-- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 7 ++---- containers/kubernetes-helm/README.md | 4 ++-- .../markdown/.devcontainer/devcontainer.json | 3 --- .../perl/.devcontainer/devcontainer.json | 6 ++--- .../php-7/.devcontainer/devcontainer.json | 3 --- .../plantuml/.devcontainer/devcontainer.json | 7 ++---- .../.devcontainer/devcontainer.json | 5 +--- .../puppet/.devcontainer/devcontainer.json | 23 ++++++++----------- .../python-2/.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 5 +--- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/docker-compose.yml | 5 ++-- .../python-3/.devcontainer/devcontainer.json | 3 --- containers/r/.devcontainer/devcontainer.json | 6 ++--- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../ruby-2/.devcontainer/devcontainer.json | 3 --- .../rust/.devcontainer/devcontainer.json | 6 ++--- .../swift-4/.devcontainer/devcontainer.json | 7 +++--- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 3 --- .../.devcontainer/devcontainer.json | 9 ++------ 61 files changed, 101 insertions(+), 263 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fdd8f6e081..51ca0edf21 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -91,7 +91,7 @@ VS Code Remote provides a straight forward development loop for creating and edi 2. `kbstyle(F1)` > **Remote-Containers: Rebuild Container**. 3. On failure: Follow the same workflow above. -Note that if you make major changes, Docker may occasionally not pick up your edits. If this happens, you can delete the existing container and image, open the folder locally, and go to step 2 above. Install the [Docker extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) locally (when not in a container) to make this easy +Note that if you make major changes, Docker may occasionally not pick up your edits. If this happens, you can delete the existing container and image, open the folder locally, and go to step 2 above. Install the [Docker extension](https://marketplace.visualstudio.com/items?itemName=PeterJausovec.vscode-docker) locally (when not in a container) to make this easy After you get your container up and running, you can test it by adding test assets / projects into the definition folder and then adding their locations to the `.npmignore` file in [glob](https://facelessuser.github.io/wcmatch/glob/) form relative to the root of the folder. By convention, most definitions place test assets in a `test-project` folder and this path is referenced in the template `.npmignore` files. diff --git a/container-templates/docker-compose/.devcontainer/docker-compose.yml b/container-templates/docker-compose/.devcontainer/docker-compose.yml index d481d8788e..0f53113e5a 100644 --- a/container-templates/docker-compose/.devcontainer/docker-compose.yml +++ b/container-templates/docker-compose/.devcontainer/docker-compose.yml @@ -20,11 +20,11 @@ services: # and the value of "workspaceFolder" in .devcontainer/devcontainer.json - ..:/workspace - # Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker-compose for details. - # - /var/run/docker.sock:/var/run/docker.sock + # This lets you avoid setting up Git again in the container + - ~/.gitconfig:/root/.gitconfig - # Uncomment the next line to share your ssh keys with the container (e.g. for Git) - # - ~/.ssh:/root/.ssh + # Uncomment the next line if you plan to install the Docker CLI. See the docker-in-docker-compose definition for details. + # - /var/run/docker.sock:/var/run/docker.sock # Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust. # cap_add: diff --git a/container-templates/dockerfile/.devcontainer/devcontainer.json b/container-templates/dockerfile/.devcontainer/devcontainer.json index 83554eb849..a0717ec5b7 100644 --- a/container-templates/dockerfile/.devcontainer/devcontainer.json +++ b/container-templates/dockerfile/.devcontainer/devcontainer.json @@ -7,14 +7,12 @@ // The optional 'runArgs' property can be used to specify additional runtime arguments. "runArgs": [ - // Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker for details. + // Uncomment the next line if you want to use Docker from the container. See the docker-in-docker definition for details. // "-v","/var/run/docker.sock:/var/run/docker.sock", - // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust - // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" + // Uncomment the next two lines if you will use a ptrace-based debugger like C++, Go, and Rust + // "--cap-add=SYS_PTRACE", + // "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/container-templates/image/.devcontainer/devcontainer.json b/container-templates/image/.devcontainer/devcontainer.json index 3e7875f105..a7f805c864 100644 --- a/container-templates/image/.devcontainer/devcontainer.json +++ b/container-templates/image/.devcontainer/devcontainer.json @@ -7,8 +7,12 @@ // The optional 'runArgs' property can be used to specify additional runtime arguments. "runArgs": [ - // Uncomment the line if you will use a ptrace-based debugger like C++, Go, and Rust. - // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" + // Uncomment the next line if you want to use Docker from the container. See the docker-in-docker definition for details. + // "-v","/var/run/docker.sock:/var/run/docker.sock", + + // Uncomment the next two lines if you will use a ptrace-based debugger like C++, Go, and Rust. + // "--cap-add=SYS_PTRACE", + // "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/containers/azure-ansible/.devcontainer/devcontainer.json b/containers/azure-ansible/.devcontainer/devcontainer.json index 82655c51b5..53eb9e0387 100644 --- a/containers/azure-ansible/.devcontainer/devcontainer.json +++ b/containers/azure-ansible/.devcontainer/devcontainer.json @@ -4,10 +4,6 @@ "runArgs": [ // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - "-v", "/var/run/docker.sock:/var/run/docker.sock" ], @@ -23,12 +19,6 @@ "extensions": [ "vscoss.vscode-ansible", "redhat.vscode-yaml", - "ms-vscode.azurecli", - "ms-azuretools.vscode-docker" - ], - "settings": { - "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" - } - } + "ms-vscode.azurecli" + ] } diff --git a/containers/azure-blockchain/.devcontainer/devcontainer.json b/containers/azure-blockchain/.devcontainer/devcontainer.json index 64c7cb9383..e23e413b54 100644 --- a/containers/azure-blockchain/.devcontainer/devcontainer.json +++ b/containers/azure-blockchain/.devcontainer/devcontainer.json @@ -1,19 +1,14 @@ { "name": "Azure Blockchain", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - + // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. // "appPort": [], - // Uncomment the next line if you want to add in default container specific settings.json values // "settings": { "workbench.colorTheme": "Quiet Light" }, - // Uncomment the next line to run commands after the container is created. // "postCreateCommand": "az --version", - "extensions": [ "ms-vscode.azurecli", "azblockchain.azure-blockchain" diff --git a/containers/azure-cli/.devcontainer/devcontainer.json b/containers/azure-cli/.devcontainer/devcontainer.json index 61f299f68a..2c55e321f9 100644 --- a/containers/azure-cli/.devcontainer/devcontainer.json +++ b/containers/azure-cli/.devcontainer/devcontainer.json @@ -2,13 +2,8 @@ "name": "Azure CLI", "dockerFile": "Dockerfile", - "runArgs": [ - // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. - // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" , - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" - ], + // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/azure-functions-dotnetcore-2.1/.devcontainer/devcontainer.json b/containers/azure-functions-dotnetcore-2.1/.devcontainer/devcontainer.json index 65526a3253..259730d3f4 100644 --- a/containers/azure-functions-dotnetcore-2.1/.devcontainer/devcontainer.json +++ b/containers/azure-functions-dotnetcore-2.1/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "dockerFile": "Dockerfile", "appPort": 7071, - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to add in default container specific settings.json values // "settings": { "workbench.colorTheme": "Quiet Light" }, diff --git a/containers/azure-functions-dotnetcore-latest/.devcontainer/devcontainer.json b/containers/azure-functions-dotnetcore-latest/.devcontainer/devcontainer.json index 2b1aff02a5..61a4d66fcb 100644 --- a/containers/azure-functions-dotnetcore-latest/.devcontainer/devcontainer.json +++ b/containers/azure-functions-dotnetcore-latest/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "dockerFile": "Dockerfile", "appPort": 7071, - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to add in default container specific settings.json values // "settings": { "workbench.colorTheme": "Quiet Light" }, diff --git a/containers/azure-functions-java-8/.devcontainer/devcontainer.json b/containers/azure-functions-java-8/.devcontainer/devcontainer.json index 8f37aff61c..509db82ea5 100644 --- a/containers/azure-functions-java-8/.devcontainer/devcontainer.json +++ b/containers/azure-functions-java-8/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "dockerFile": "Dockerfile", "appPort": 7071, - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to add in default container specific settings.json values // "settings": { "workbench.colorTheme": "Quiet Light" }, diff --git a/containers/azure-functions-node-8/.devcontainer/devcontainer.json b/containers/azure-functions-node-8/.devcontainer/devcontainer.json index 4216865b3a..f89a0c6e9a 100644 --- a/containers/azure-functions-node-8/.devcontainer/devcontainer.json +++ b/containers/azure-functions-node-8/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "dockerFile": "Dockerfile", "appPort": 7071, - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to add in default container specific settings.json values // "settings": { "workbench.colorTheme": "Quiet Light" }, diff --git a/containers/azure-functions-node-lts/.devcontainer/devcontainer.json b/containers/azure-functions-node-lts/.devcontainer/devcontainer.json index 7e395088e6..de10df27b6 100644 --- a/containers/azure-functions-node-lts/.devcontainer/devcontainer.json +++ b/containers/azure-functions-node-lts/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "dockerFile": "Dockerfile", "appPort": 7071, - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to add in default container specific settings.json values // "settings": { "workbench.colorTheme": "Quiet Light" }, diff --git a/containers/azure-functions-python-3/.devcontainer/devcontainer.json b/containers/azure-functions-python-3/.devcontainer/devcontainer.json index b53777e9af..29c0eb9ea9 100644 --- a/containers/azure-functions-python-3/.devcontainer/devcontainer.json +++ b/containers/azure-functions-python-3/.devcontainer/devcontainer.json @@ -3,24 +3,20 @@ "name": "Azure Functions & Python 3", "dockerFile": "Dockerfile", "appPort": [ 7071 ], - "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", + "runArgs": ["-v","/var/run/docker.sock:/var/run/docker.sock"], - "-v","/var/run/docker.sock:/var/run/docker.sock" - ], + // Uncomment the next line if you want to add in default container specific settings.json values + "settings": { + "remote.extensionKind": { + "ms-azuretools.vscode-docker": "workspace" + } + }, // Uncomment the next line to run commands after the container is created. // "postCreateCommand": "npm install", "extensions": [ "ms-azuretools.vscode-azurefunctions", - "ms-azuretools.vscode-docker", "ms-python.python" - ], - "settings": { - "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" - } - } + ] } \ No newline at end of file diff --git a/containers/azure-machine-learning-python-3/.devcontainer/devcontainer.json b/containers/azure-machine-learning-python-3/.devcontainer/devcontainer.json index b113c16ad5..1780d25fcf 100644 --- a/containers/azure-machine-learning-python-3/.devcontainer/devcontainer.json +++ b/containers/azure-machine-learning-python-3/.devcontainer/devcontainer.json @@ -2,11 +2,8 @@ "name": "Azure Machine Learning", "dockerFile": "Dockerfile", "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "-v", "/var/run/docker.sock:/var/run/docker.sock" - ], + "-v","/var/run/docker.sock:/var/run/docker.sock" + ], // Uncomment the next line if you want to publish any ports. // "appPort": [], @@ -16,11 +13,11 @@ "extensions": [ "ms-toolsai.vscode-ai", - "ms-azuretools.vscode-docker" + "peterjausovec.vscode-docker" ], "settings": { "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" + "peterjausovec.vscode-docker": "workspace" }, "python.pythonPath": "/opt/conda/bin/python", "python.linting.pylintEnabled": true, diff --git a/containers/azure-terraform/.devcontainer/devcontainer.json b/containers/azure-terraform/.devcontainer/devcontainer.json index 69e3667728..9b9f2ba92d 100644 --- a/containers/azure-terraform/.devcontainer/devcontainer.json +++ b/containers/azure-terraform/.devcontainer/devcontainer.json @@ -4,11 +4,7 @@ "runArgs": [ // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "-v", "/var/run/docker.sock:/var/run/docker.sock" + "-v","/var/run/docker.sock:/var/run/docker.sock" ], // Uncomment the next line if you want to publish any ports. @@ -24,11 +20,6 @@ "mauve.terraform", "ms-azuretools.vscode-azureterraform", "ms-vscode.azurecli", - "ms-azuretools.vscode-docker" - ], - "settings": { - "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" - } - } + "peterjausovec.vscode-docker" + ] } \ No newline at end of file diff --git a/containers/bazel/.devcontainer/devcontainer.json b/containers/bazel/.devcontainer/devcontainer.json index 29822546a6..8945618164 100644 --- a/containers/bazel/.devcontainer/devcontainer.json +++ b/containers/bazel/.devcontainer/devcontainer.json @@ -1,13 +1,9 @@ { "name": "Bazel", "dockerFile": "Dockerfile", - "runArgs": [ - // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. - // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" , - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" - ], + // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ] // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/cpp/.devcontainer/devcontainer.json b/containers/cpp/.devcontainer/devcontainer.json index 6c1a5d4c17..9dc807852a 100644 --- a/containers/cpp/.devcontainer/devcontainer.json +++ b/containers/cpp/.devcontainer/devcontainer.json @@ -1,12 +1,10 @@ { "name": "C++", "dockerFile": "Dockerfile", - "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" - ], + "runArgs": [ + "--cap-add=SYS_PTRACE", + "--security-opt", "seccomp=unconfined" + ], // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/dart/.devcontainer/devcontainer.json b/containers/dart/.devcontainer/devcontainer.json index 38270ec2c9..6c9bf141ae 100644 --- a/containers/dart/.devcontainer/devcontainer.json +++ b/containers/dart/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Dart", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/debian-9-git/.devcontainer/devcontainer.json b/containers/debian-9-git/.devcontainer/devcontainer.json index 71e03197aa..3ab3e4cdb5 100644 --- a/containers/debian-9-git/.devcontainer/devcontainer.json +++ b/containers/debian-9-git/.devcontainer/devcontainer.json @@ -2,14 +2,9 @@ "name": "Debian 9 & Git", "dockerFile": "Dockerfile", - "runArgs": [ - // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. - // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" , + // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" - ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/docker-existing-docker-compose/.devcontainer/docker-compose.yml b/containers/docker-existing-docker-compose/.devcontainer/docker-compose.yml index 2653564f0d..17dad0c7d4 100644 --- a/containers/docker-existing-docker-compose/.devcontainer/docker-compose.yml +++ b/containers/docker-existing-docker-compose/.devcontainer/docker-compose.yml @@ -20,11 +20,11 @@ services: # Update this to wherever you want VS Code to mount the folder of your project - ..:/workspace - # Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker-compose for details. - # - /var/run/docker.sock:/var/run/docker.sock + # This lets you avoid setting up Git again in the container + - ~/.gitconfig:/root/.gitconfig - # Uncomment the next line to share your ssh keys with the container (e.g. for Git) - # - ~/.ssh:/root/.ssh + # Uncomment the next line if you plan to install the Docker CLI. See the docker-in-docker-compose definition for details. + # - /var/run/docker.sock:/var/run/docker.sock # Uncomment the next four lines if you will use a ptrace-based debugger like C++, Go, and Rust. # cap_add: diff --git a/containers/docker-existing-dockerfile/.devcontainer/devcontainer.json b/containers/docker-existing-dockerfile/.devcontainer/devcontainer.json index 0b712d25a1..5d1ac44ad3 100644 --- a/containers/docker-existing-dockerfile/.devcontainer/devcontainer.json +++ b/containers/docker-existing-dockerfile/.devcontainer/devcontainer.json @@ -10,14 +10,11 @@ // The optional 'runArgs' property can be used to specify additional runtime arguments. "runArgs": [ - // Uncomment the next line to use Docker from inside the container. See https://aka.ms/vscode-remote/samples/docker-in-docker for details. + // Uncomment the next line if you want to use Docker from the container. See the docker-in-docker definition for details. // "-v","/var/run/docker.sock:/var/run/docker.sock", // Uncomment the next line if you will be using a ptrace-based debugger like C++, Go, and Rust. - // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" + // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/containers/docker-in-docker-compose/.devcontainer/devcontainer.json b/containers/docker-in-docker-compose/.devcontainer/devcontainer.json index 91af93e721..0470adf76e 100644 --- a/containers/docker-in-docker-compose/.devcontainer/devcontainer.json +++ b/containers/docker-in-docker-compose/.devcontainer/devcontainer.json @@ -11,11 +11,11 @@ // "postCreateCommand": "docker --version" "extensions": [ - "ms-azuretools.vscode-docker" + "peterjausovec.vscode-docker" ], "settings": { "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" + "peterjausovec.vscode-docker": "workspace" } } } \ No newline at end of file diff --git a/containers/docker-in-docker-compose/.devcontainer/docker-compose.yml b/containers/docker-in-docker-compose/.devcontainer/docker-compose.yml index e9762ea973..9831dcb350 100644 --- a/containers/docker-in-docker-compose/.devcontainer/docker-compose.yml +++ b/containers/docker-in-docker-compose/.devcontainer/docker-compose.yml @@ -14,12 +14,12 @@ services: # Update this to wherever you want VS Code to mount the folder of your project - ..:/workspace + # This lets you avoid setting up Git again in the container + - ~/.gitconfig:/root/.gitconfig + # Forwards the local Docker socket to the container. - /var/run/docker.sock:/var/run/docker.sock - # Uncomment the next line to share your ssh keys with the container (e.g. for Git) - # - ~/.ssh:/root/.ssh - # Uncomment the next four lines if you will use a ptrace-based debuggers like C++, Go, and Rust. # cap_add: # - SYS_PTRACE diff --git a/containers/docker-in-docker-compose/README.md b/containers/docker-in-docker-compose/README.md index 0d530686f9..055d5ef748 100644 --- a/containers/docker-in-docker-compose/README.md +++ b/containers/docker-in-docker-compose/README.md @@ -16,7 +16,7 @@ Dev containers can be useful for all types of applications including those that also deploy into a container based-environment. While you can directly build and run the application inside the dev container you create, you may also want to test it by deploying a built container image into your local Docker Desktop instance without affecting your dev container. -This example illustrates how you can do this by running CLI commands and using the [Docker VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) right from inside your dev container. It installs the Docker extension inside the container so you can use its full feature set with your project. +This example illustrates how you can do this by running CLI commands and using the [Docker VS Code extension](https://marketplace.visualstudio.com/items?itemName=PeterJausovec.vscode-docker) right from inside your dev container. It installs the Docker extension inside the container so you can use its full feature set with your project. ## How it works / adapting your existing dev container config @@ -51,7 +51,7 @@ You can adapt your own existing development container Docker Compose setup to su ```json "settings": { "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" + "peterjausovec.vscode-docker": "workspace" } }, ``` diff --git a/containers/docker-in-docker/.devcontainer/devcontainer.json b/containers/docker-in-docker/.devcontainer/devcontainer.json index d97885d523..b65c2c0b45 100644 --- a/containers/docker-in-docker/.devcontainer/devcontainer.json +++ b/containers/docker-in-docker/.devcontainer/devcontainer.json @@ -2,12 +2,8 @@ "name": "Docker in Docker", "dockerFile": "Dockerfile", "runArgs": [ - // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. + // Uncomment the next linesif you will use a ptrace-based debugger like C++, Go, and Rust. // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - "-v", "/var/run/docker.sock:/var/run/docker.sock" ], @@ -18,11 +14,11 @@ // "postCreateCommand": "docker --version", "extensions": [ - "ms-azuretools.vscode-docker" + "peterjausovec.vscode-docker" ], "settings": { "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" + "peterjausovec.vscode-docker": "workspace" } } } \ No newline at end of file diff --git a/containers/docker-in-docker/README.md b/containers/docker-in-docker/README.md index bd2d1b54e5..0ca3db1fb7 100644 --- a/containers/docker-in-docker/README.md +++ b/containers/docker-in-docker/README.md @@ -16,7 +16,7 @@ Dev containers can be useful for all types of applications including those that also deploy into a container based-environment. While you can directly build and run the application inside the dev container you create, you may also want to test it by deploying a built container image into your local Docker Desktop instance without affecting your dev container. -This example illustrates how you can do this by running CLI commands and using the [Docker VS Code extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) right from inside your dev container. It installs the Docker extension inside the container so you can use its full feature set with your project. +This example illustrates how you can do this by running CLI commands and using the [Docker VS Code extension](https://marketplace.visualstudio.com/items?itemName=PeterJausovec.vscode-docker) right from inside your dev container. It installs the Docker extension inside the container so you can use its full feature set with your project. ## How it works / adapting your existing dev container config @@ -50,7 +50,7 @@ You can adapt your own existing development container Dockerfile to support this ```json "settings": { "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" + "peterjausovec.vscode-docker": "workspace" } }, ``` diff --git a/containers/dotnetcore-2.1-fsharp/.devcontainer/devcontainer.json b/containers/dotnetcore-2.1-fsharp/.devcontainer/devcontainer.json index 3bf7659a63..5add94a759 100644 --- a/containers/dotnetcore-2.1-fsharp/.devcontainer/devcontainer.json +++ b/containers/dotnetcore-2.1-fsharp/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "F# (.NET Core 2.1)", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/dotnetcore-2.1/.devcontainer/devcontainer.json b/containers/dotnetcore-2.1/.devcontainer/devcontainer.json index a6bd7eebd4..bc5f03edd9 100644 --- a/containers/dotnetcore-2.1/.devcontainer/devcontainer.json +++ b/containers/dotnetcore-2.1/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "C# (.NET Core 2.1)", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/dotnetcore-latest-fsharp/.devcontainer/devcontainer.json b/containers/dotnetcore-latest-fsharp/.devcontainer/devcontainer.json index 1151130c43..44d7680397 100644 --- a/containers/dotnetcore-latest-fsharp/.devcontainer/devcontainer.json +++ b/containers/dotnetcore-latest-fsharp/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "F# (.NET Core Latest)", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/dotnetcore-latest/.devcontainer/devcontainer.json b/containers/dotnetcore-latest/.devcontainer/devcontainer.json index 7d86823361..e7a9f46f6b 100644 --- a/containers/dotnetcore-latest/.devcontainer/devcontainer.json +++ b/containers/dotnetcore-latest/.devcontainer/devcontainer.json @@ -1,9 +1,6 @@ { "name": "C# (.NET Core Latest)", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/go/.devcontainer/devcontainer.json b/containers/go/.devcontainer/devcontainer.json index f4129ff426..f7f4a6f75f 100644 --- a/containers/go/.devcontainer/devcontainer.json +++ b/containers/go/.devcontainer/devcontainer.json @@ -2,10 +2,8 @@ "name": "Go", "dockerFile": "Dockerfile", "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" + "--cap-add=SYS_PTRACE", + "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/containers/java-11/.devcontainer/devcontainer.json b/containers/java-11/.devcontainer/devcontainer.json index cc2bcc0ff1..be775b6b10 100644 --- a/containers/java-11/.devcontainer/devcontainer.json +++ b/containers/java-11/.devcontainer/devcontainer.json @@ -1,9 +1,6 @@ { "name": "Java 11", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/java-12/.devcontainer/devcontainer.json b/containers/java-12/.devcontainer/devcontainer.json index 26c338857a..dad13a38c3 100644 --- a/containers/java-12/.devcontainer/devcontainer.json +++ b/containers/java-12/.devcontainer/devcontainer.json @@ -1,10 +1,7 @@ { "name": "Java 12", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - + // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/java-8-tomcat-8.5/.devcontainer/devcontainer.json b/containers/java-8-tomcat-8.5/.devcontainer/devcontainer.json index 297b94ab93..3dd6f10e23 100644 --- a/containers/java-8-tomcat-8.5/.devcontainer/devcontainer.json +++ b/containers/java-8-tomcat-8.5/.devcontainer/devcontainer.json @@ -1,10 +1,7 @@ { "name": "Java 8 & Tomcat 8.5", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - + // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/java-8/.devcontainer/devcontainer.json b/containers/java-8/.devcontainer/devcontainer.json index 387d27dd85..76a0194ead 100644 --- a/containers/java-8/.devcontainer/devcontainer.json +++ b/containers/java-8/.devcontainer/devcontainer.json @@ -1,9 +1,6 @@ { "name": "Java 8", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/javascript-node-8/.devcontainer/devcontainer.json b/containers/javascript-node-8/.devcontainer/devcontainer.json index 345a49dc7c..c91ec052e7 100644 --- a/containers/javascript-node-8/.devcontainer/devcontainer.json +++ b/containers/javascript-node-8/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Node.js 8", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/javascript-node-lts-mongo/.devcontainer/docker-compose.yml b/containers/javascript-node-lts-mongo/.devcontainer/docker-compose.yml index e79f93f2ef..d0a0d1c30e 100644 --- a/containers/javascript-node-lts-mongo/.devcontainer/docker-compose.yml +++ b/containers/javascript-node-lts-mongo/.devcontainer/docker-compose.yml @@ -12,9 +12,8 @@ services: volumes: - ..:/workspace - - # Uncomment the next line to share your ssh keys with the container (e.g. for Git) - # - ~/.ssh:/root/.ssh + # This lets you avoid setting up Git again in the container + - ~/.gitconfig:/root/.gitconfig # Overrides default command so things don't shut down after the process ends. command: sleep infinity diff --git a/containers/javascript-node-lts-postgres/.devcontainer/docker-compose.yml b/containers/javascript-node-lts-postgres/.devcontainer/docker-compose.yml index 617a230f32..f9498a8a75 100644 --- a/containers/javascript-node-lts-postgres/.devcontainer/docker-compose.yml +++ b/containers/javascript-node-lts-postgres/.devcontainer/docker-compose.yml @@ -12,9 +12,8 @@ services: volumes: - ..:/workspace - - # Uncomment the next line to share your ssh keys with the container (e.g. for Git) - # - ~/.ssh:/root/.ssh + # This lets you avoid setting up Git again in the container + - ~/.gitconfig:/root/.gitconfig # Overrides default command so things don't shut down after the process ends. command: sleep infinity diff --git a/containers/javascript-node-lts/.devcontainer/devcontainer.json b/containers/javascript-node-lts/.devcontainer/devcontainer.json index c9c1a94acc..24e77248cd 100644 --- a/containers/javascript-node-lts/.devcontainer/devcontainer.json +++ b/containers/javascript-node-lts/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Node.js (latest LTS)", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/kubernetes-helm/.devcontainer/devcontainer.json b/containers/kubernetes-helm/.devcontainer/devcontainer.json index 5d2b4b3be9..a4ffc78c53 100644 --- a/containers/kubernetes-helm/.devcontainer/devcontainer.json +++ b/containers/kubernetes-helm/.devcontainer/devcontainer.json @@ -4,13 +4,10 @@ "runArgs": [ // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined", - "--mount", "type=bind,source=/var/run/docker.sock,target=/var/run/docker.sock", "--mount", "type=bind,source=${env:HOME}${env:USERPROFILE}/.kube,target=/root/.kube-localhost", - // Uncomment the next line to also sync certs in your .minikube folder // "--mount", "type=bind,source=${env:HOME}${env:USERPROFILE}/.minikube,target=/root/.minikube-localhost", - "-e", "SYNC_LOCALHOST_KUBECONFIG=true" ], @@ -21,12 +18,12 @@ // "postCreateCommand": "kubectl version", "extensions": [ - "ms-azuretools.vscode-docker", + "peterjausovec.vscode-docker", "ms-kubernetes-tools.vscode-kubernetes-tools" ], "settings": { "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" + "peterjausovec.vscode-docker": "workspace" } } } diff --git a/containers/kubernetes-helm/README.md b/containers/kubernetes-helm/README.md index 5cb208ba5d..f0232a907f 100644 --- a/containers/kubernetes-helm/README.md +++ b/containers/kubernetes-helm/README.md @@ -14,7 +14,7 @@ Dev containers can be useful for all types of applications including those that also deploy into a container based-environment. While you can directly build and run the application inside the dev container you create, you may also want to test it by deploying a built container image into a local or remote [Kubernetes](https://kubernetes.io/) cluster without affecting your dev container. -This example illustrates how you can do this by using CLIs ([kubectl](https://kubernetes.io/docs/reference/kubectl/overview/), [Helm](https://helm.sh), Docker), the [Kubernetes extension](https://marketplace.visualstudio.com/items?itemName=ms-kubernetes-tools.vscode-kubernetes-tools), and the [Docker extension](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-docker) right from inside your dev container. This definition builds up from the [docker-in-docker](../docker-in-docker) container definition to add Kubernetes and Helm support. It installs the Docker and Kubernetes extensions inside the container so you can use its full feature set with your project. +This example illustrates how you can do this by using CLIs ([kubectl](https://kubernetes.io/docs/reference/kubectl/overview/), [Helm](https://helm.sh), Docker), the [Kubernetes extension](https://marketplace.visualstudio.com/items?itemName=ms-kubernetes-tools.vscode-kubernetes-tools), and the [Docker extension](https://marketplace.visualstudio.com/items?itemName=PeterJausovec.vscode-docker) right from inside your dev container. This definition builds up from the [docker-in-docker](../docker-in-docker) container definition to add Kubernetes and Helm support. It installs the Docker and Kubernetes extensions inside the container so you can use its full feature set with your project. The dev container also syncs your local Kubernetes config (`~/.kube/config` or `%USERPROFILE%\.kube\config`) into the container with the necessary modifications to allow it to interact with anything running on your local machine whenever the container or a terminal window is started. This includes interacting with a Kubernetes cluster managed through Docker Desktop or a local Minikube install. @@ -44,7 +44,7 @@ You can adapt your own existing development container Dockerfile to support this ```json "settings": { "remote.extensionKind": { - "ms-azuretools.vscode-docker": "workspace" + "peterjausovec.vscode-docker": "workspace" } }, ``` diff --git a/containers/markdown/.devcontainer/devcontainer.json b/containers/markdown/.devcontainer/devcontainer.json index 7b189403a5..cb97aeda2d 100644 --- a/containers/markdown/.devcontainer/devcontainer.json +++ b/containers/markdown/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Markdown Editing", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/perl/.devcontainer/devcontainer.json b/containers/perl/.devcontainer/devcontainer.json index 8351c91e5c..f938eedca3 100644 --- a/containers/perl/.devcontainer/devcontainer.json +++ b/containers/perl/.devcontainer/devcontainer.json @@ -2,10 +2,8 @@ "name": "Perl", "dockerFile": "Dockerfile", "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" + "--cap-add=SYS_PTRACE", + "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/containers/php-7/.devcontainer/devcontainer.json b/containers/php-7/.devcontainer/devcontainer.json index afd87f53e2..9c7cb5ac53 100644 --- a/containers/php-7/.devcontainer/devcontainer.json +++ b/containers/php-7/.devcontainer/devcontainer.json @@ -1,9 +1,6 @@ { "name": "PHP 7", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/plantuml/.devcontainer/devcontainer.json b/containers/plantuml/.devcontainer/devcontainer.json index aeeb856db7..bd4f08d338 100644 --- a/containers/plantuml/.devcontainer/devcontainer.json +++ b/containers/plantuml/.devcontainer/devcontainer.json @@ -1,10 +1,7 @@ { "name": "PlantUML", - "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - + "dockerFile": "Dockerfile", + // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/powershell/.devcontainer/devcontainer.json b/containers/powershell/.devcontainer/devcontainer.json index 0edb74a63d..f2fd532edc 100644 --- a/containers/powershell/.devcontainer/devcontainer.json +++ b/containers/powershell/.devcontainer/devcontainer.json @@ -1,10 +1,7 @@ { "name": "PowerShell", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - + // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/puppet/.devcontainer/devcontainer.json b/containers/puppet/.devcontainer/devcontainer.json index 036f7a708e..c189e37c43 100644 --- a/containers/puppet/.devcontainer/devcontainer.json +++ b/containers/puppet/.devcontainer/devcontainer.json @@ -1,21 +1,18 @@ { - "name": "Puppet Development Kit - Dockerfile", - "dockerFile": "Dockerfile", + "name": "Puppet Development Kit - Dockerfile", + "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], + // Uncomment the next line if you want to publish any ports. + // "appPort": [], - // Uncomment the next line if you want to publish any ports. - // "appPort": [], + // Uncomment the next line if you want to add in default container specific settings.json values + // "settings": { "workbench.colorTheme": "Quiet Light" }, - // Uncomment the next line if you want to add in default container specific settings.json values - // "settings": { "workbench.colorTheme": "Quiet Light" }, - - // Uncomment the next line to run commands after the container is created. - // "postCreateCommand": "pdk --version", + // Uncomment the next line to run commands after the container is created. + // "postCreateCommand": "pdk --version", "extensions": [ - "jpogran.puppet-vscode", - "rebornix.Ruby" + "jpogran.puppet-vscode", + "rebornix.Ruby" ] } diff --git a/containers/python-2/.devcontainer/devcontainer.json b/containers/python-2/.devcontainer/devcontainer.json index 2f769d30bb..cf4a63e84b 100644 --- a/containers/python-2/.devcontainer/devcontainer.json +++ b/containers/python-2/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "context": "..", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/python-3-anaconda/.devcontainer/devcontainer.json b/containers/python-3-anaconda/.devcontainer/devcontainer.json index 8d1b93b363..06e70c4fec 100644 --- a/containers/python-3-anaconda/.devcontainer/devcontainer.json +++ b/containers/python-3-anaconda/.devcontainer/devcontainer.json @@ -2,10 +2,7 @@ "name": "Python 3 - Anaconda", "context": "..", "dockerFile": "Dockerfile", - - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - + // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/python-3-miniconda/.devcontainer/devcontainer.json b/containers/python-3-miniconda/.devcontainer/devcontainer.json index 83a1b69695..1cdba66fd1 100644 --- a/containers/python-3-miniconda/.devcontainer/devcontainer.json +++ b/containers/python-3-miniconda/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "context": "..", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/python-3-postgres/.devcontainer/docker-compose.yml b/containers/python-3-postgres/.devcontainer/docker-compose.yml index 1b3007df93..a525438051 100644 --- a/containers/python-3-postgres/.devcontainer/docker-compose.yml +++ b/containers/python-3-postgres/.devcontainer/docker-compose.yml @@ -8,9 +8,8 @@ services: volumes: - ..:/workspace - - # Uncomment the next line to share your ssh keys with the container (e.g. for Git) - # - ~/.ssh:/root/.ssh + # This lets you avoid setting up Git again in the container + - ~/.gitconfig:/root/.gitconfig # Overrides default command so things don't shut down after the process ends. command: sleep infinity diff --git a/containers/python-3/.devcontainer/devcontainer.json b/containers/python-3/.devcontainer/devcontainer.json index 6dae9c4662..527ae81f81 100644 --- a/containers/python-3/.devcontainer/devcontainer.json +++ b/containers/python-3/.devcontainer/devcontainer.json @@ -3,9 +3,6 @@ "context": "..", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/r/.devcontainer/devcontainer.json b/containers/r/.devcontainer/devcontainer.json index 8a9ecd7159..cadf4b77e9 100644 --- a/containers/r/.devcontainer/devcontainer.json +++ b/containers/r/.devcontainer/devcontainer.json @@ -2,10 +2,8 @@ "name": "R", "dockerFile": "Dockerfile", "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" + "--cap-add=SYS_PTRACE", + "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/containers/ruby-2-rails-5/.devcontainer/devcontainer.json b/containers/ruby-2-rails-5/.devcontainer/devcontainer.json index 3eca735a9b..60e217ae8f 100644 --- a/containers/ruby-2-rails-5/.devcontainer/devcontainer.json +++ b/containers/ruby-2-rails-5/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Ruby 2 Rails", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": ["80:80"], diff --git a/containers/ruby-2-sinatra/.devcontainer/devcontainer.json b/containers/ruby-2-sinatra/.devcontainer/devcontainer.json index 26516c8abb..f693b77ebc 100644 --- a/containers/ruby-2-sinatra/.devcontainer/devcontainer.json +++ b/containers/ruby-2-sinatra/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Ruby 2 Sinatra", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment and edit the next line if you want to publish any ports. // "appPort": ["4567:4567"] diff --git a/containers/ruby-2/.devcontainer/devcontainer.json b/containers/ruby-2/.devcontainer/devcontainer.json index 0e1bd47ed9..9ef34351b0 100644 --- a/containers/ruby-2/.devcontainer/devcontainer.json +++ b/containers/ruby-2/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Ruby 2", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/rust/.devcontainer/devcontainer.json b/containers/rust/.devcontainer/devcontainer.json index 2693e8247c..fd17882fc5 100644 --- a/containers/rust/.devcontainer/devcontainer.json +++ b/containers/rust/.devcontainer/devcontainer.json @@ -2,10 +2,8 @@ "name": "Rust", "dockerFile": "Dockerfile", "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" + "--cap-add=SYS_PTRACE", + "--security-opt", "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/containers/swift-4/.devcontainer/devcontainer.json b/containers/swift-4/.devcontainer/devcontainer.json index 1a6121edce..87b59a18d8 100644 --- a/containers/swift-4/.devcontainer/devcontainer.json +++ b/containers/swift-4/.devcontainer/devcontainer.json @@ -2,10 +2,9 @@ "name": "Swift 4", "dockerFile": "Dockerfile", "runArgs": [ - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh", - - "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" + "--cap-add=SYS_PTRACE", + "--security-opt", + "seccomp=unconfined" ], // Uncomment the next line if you want to publish any ports. diff --git a/containers/typescript-node-8/.devcontainer/devcontainer.json b/containers/typescript-node-8/.devcontainer/devcontainer.json index 159ecd5f66..e06bbcda70 100644 --- a/containers/typescript-node-8/.devcontainer/devcontainer.json +++ b/containers/typescript-node-8/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Node.js 8 & TypeScript", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/typescript-node-lts/.devcontainer/devcontainer.json b/containers/typescript-node-lts/.devcontainer/devcontainer.json index 6b32986225..e6e1dd704e 100644 --- a/containers/typescript-node-lts/.devcontainer/devcontainer.json +++ b/containers/typescript-node-lts/.devcontainer/devcontainer.json @@ -2,9 +2,6 @@ "name": "Node.js (latest LTS) & TypeScript", "dockerFile": "Dockerfile", - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "runArgs": [ "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" ], - // Uncomment the next line if you want to publish any ports. // "appPort": [], diff --git a/containers/ubuntu-18.04-git/.devcontainer/devcontainer.json b/containers/ubuntu-18.04-git/.devcontainer/devcontainer.json index 3828b7e170..27a6ce2bb0 100644 --- a/containers/ubuntu-18.04-git/.devcontainer/devcontainer.json +++ b/containers/ubuntu-18.04-git/.devcontainer/devcontainer.json @@ -2,14 +2,9 @@ "name": "Ubuntu 18.04 & Git", "dockerFile": "Dockerfile", - "runArgs": [ - // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. - // "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" , + // Uncomment the next line if you will use a ptrace-based debugger like C++, Go, and Rust. + // "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], - // Uncomment the next line to share your ssh keys with the container (e.g. for Git) - // "-v", ${env:HOME}${env:USERPROFILE}/.ssh:/root/.ssh" - ], - // Uncomment the next line if you want to publish any ports. // "appPort": [],