Skip to content

Instantly share code, notes, and snippets.

@cwiederspan
Created January 29, 2020 00:47
Show Gist options
  • Select an option

  • Save cwiederspan/d0d066cb79aab5c1d1d24148fdbed5ac to your computer and use it in GitHub Desktop.

Select an option

Save cwiederspan/d0d066cb79aab5c1d1d24148fdbed5ac to your computer and use it in GitHub Desktop.
My Development Container Settings
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or the definition README at
// https://github.com/microsoft/vscode-dev-containers/tree/master/containers/azure-cli
{
"name": "ATeamSW Devcontainer",
"dockerComposeFile": "docker-compose.yml",
"service": "devcontainer",
"workspaceFolder": "/workspace",
// Uncomment the next line to have VS Code connect as an existing non-root user in the container.
// On Linux, by default, the container user's UID/GID will be updated to match your local user. See
// https://aka.ms/vscode-remote/containers/non-root for details on adding a non-root user if none exist.
// "remoteUser": "vscode",
// 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" ],
// Use 'settings' to set *default* container specific settings.json values on container create.
// You can edit these settings after create using File > Preferences > Settings > Remote.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},
// Use 'appPort' to create a container with published ports. If the port isn't working, be sure
// your server accepts connections from all interfaces (0.0.0.0 or '*'), not just localhost.
// "appPort": [],
// Uncomment the next line to run commands after the container is created.
// "postCreateCommand": "az --version",
// Add the IDs of extensions you want installed when the container is created in the array below.
"extensions": [
"ms-vscode.azurecli",
"ms-azuretools.vscode-azureterraform",
"mauve.terraform",
"ms-vscode.csharp",
"visualstudioexptteam.vscodeintellicode"
]
}
version: '3'
services:
devcontainer:
image: ateamsw/devcontainer:latest
container_name: devcontainer
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ..:/workspace
- /c/users/chwieder/.azure:/root/.azure
- /c/users/chwieder/.git:/root/.config/git
- /c/users/chwieder/.kube:/root/.kube
# Overrides default command so things don't shut down after the process ends.
command: sleep infinity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment