-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdevcontainer.json
More file actions
59 lines (59 loc) · 1.89 KB
/
devcontainer.json
File metadata and controls
59 lines (59 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
// The AS VisualStudio Code DevContainer.
// Engineered to mimic the run-time environment of the published app
// but with DinD, git and poetry.
//
// For quick reference: https://containers.dev/implementors/json_reference/
"name": "Python Docker",
"build": {
"dockerfile": "Dockerfile"
},
"runArgs": [
"--network=host"
],
// User is expected to have a local ~/k8s-config directory
// and it's an error not to have this directory.
// We mount this into the container at /k8s-config.
//
// We also mount bash history in an attempt to preserver history
// between container restarts
// (see https://code.visualstudio.com/remote/advancedcontainers/persist-bash-history)
"mounts": [
"source=${localEnv:HOME}/k8s-config,target=/k8s-config,type=bind,consistency=cached",
"source=projectname-bashhistory,target=/commandhistory,type=volume"
],
"postCreateCommand": {
"Fix Volume Permissions": "sudo chown -R $(whoami): /commandhistory"
},
// Install Docker-in-Docker
"features": {
"ghcr.io/devcontainers/features/docker-in-docker": {}
},
// Add VSCode extensions that we normally use...
"customizations": {
"vscode": {
"extensions": [
"42crunch.vscode-openapi",
"codezombiech.gitignore",
"donjayamanne.githistory",
"donjayamanne.git-extension-pack",
"eamodio.gitlens",
"github.vscode-github-actions",
"jebbs.plantuml",
"jimasp.behave-vsc",
"ms-kubernetes-tools.vscode-kubernetes-tools",
"ms-python.debugpy",
"ms-python.pylint",
"ms-python.python",
"ms-python.vscode-pylance",
"redhat.ansible",
"redhat.vscode-yaml",
"sourcery.sourcery",
"streetsidesoftware.code-spell-checker",
"trond-snekvik.simple-rst",
"vivaxy.vscode-conventional-commits",
"yzhang.markdown-all-in-one"
]
}
}
}