47 lines
2.0 KiB
JSON
47 lines
2.0 KiB
JSON
{
|
|
"name": "loafle.docker.tools",
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
"dockerComposeFile": "docker-compose.yaml",
|
|
"service": "app",
|
|
"workspaceFolder": "/workspace",
|
|
"shutdownAction": "stopCompose",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/git:1": {},
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
|
|
},
|
|
// Configure tool-specific properties.
|
|
"customizations": {
|
|
// Configure properties specific to VS Code.
|
|
"vscode": {
|
|
"settings": {
|
|
"terminal.integrated.defaultProfile.linux": "zsh",
|
|
"terminal.integrated.profiles.linux": {
|
|
"zsh": {
|
|
"path": "/bin/zsh"
|
|
}
|
|
},
|
|
"editor.formatOnSave": true
|
|
},
|
|
"extensions": [
|
|
"eamodio.gitlens",
|
|
"esbenp.prettier-vscode",
|
|
"ms-azuretools.vscode-docker",
|
|
"ms-kubernetes-tools.vscode-kubernetes-tools",
|
|
"streetsidesoftware.code-spell-checker",
|
|
"tamasfe.even-better-toml"
|
|
]
|
|
}
|
|
},
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// "forwardPorts": [],
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
"postCreateCommand": "/bin/sh ./.devcontainer/postCreateCommand.sh",
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
// "remoteUser": "vscode"
|
|
"mounts": [
|
|
"source=${localEnv:HOME}/.gitconfig,target=/home/vscode/.gitconfig,type=bind,consistency=cached",
|
|
"source=${localEnv:HOME}/.config/pypoetry,target=/home/vscode/.config/pypoetry,type=bind,consistency=cached",
|
|
"source=${localEnv:HOME}/.ssh/id_rsa,target=/home/vscode/.ssh/id_rsa,type=bind,consistency=cached",
|
|
"source=${localEnv:HOME}/.netrc,target=/home/vscode/.netrc,type=bind,consistency=cached"
|
|
]
|
|
} |