-
Notifications
You must be signed in to change notification settings - Fork 0
/
devcontainer.json
executable file
·78 lines (78 loc) · 2.73 KB
/
devcontainer.json
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/alpine
{
"name": "${localWorkspaceFolderBasename}",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"build": {
"context": ".",
"dockerfile": "Dockerfile",
"args": {
"USER": "${localEnv:USERNAME}",
"PROJECT_NAME": "${localWorkspaceFolderBasename}",
"HOST_PROJECT_PATH": "${localWorkspaceFolder}",
"TZ": "${localEnv:TZ:America/New_York}"
}
},
"workspaceFolder": "/workspace/${localWorkspaceFolderBasename}",
"runArgs": ["--name", "${localWorkspaceFolderBasename}_devcontainer", "--hostname", "${localWorkspaceFolderBasename}" ],
"initializeCommand": "pwsh -File ${localWorkspaceFolder}/.devcontainer/setup-ssh-agent.ps1",
"updateContentCommand": "make --ignore-errors -f .devcontainer/Makefile",
"containerEnv": {
"HOST_PROJECT_PATH": "${localWorkspaceFolder}",
},
"mounts": [
"source=${localWorkspaceFolderBasename}-home,target=/home/${localEnv:USERNAME},type=volume",
"source=${localEnv:USERPROFILE}/.ssh,target=/home/${localEnv:USERNAME}/.ssh,type=bind,consistency=cached",
"source=${localWorkspaceFolder},target=/workspace/${localWorkspaceFolderBasename},type=bind,consistency=cached",
],
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"Shopify.ruby-lsp",
"eamodio.gitlens",
"redhat.vscode-yaml",
"kaiwood.endwise",
"CraigMaslowski.erb",
"sidneys1.gitconfig",
"vscode-icons-team.vscode-icons",
"nhoizey.gremlins",
"nonoroazoro.syncing",
"dunstontc.vscode-docker-syntax",
"bung87.vscode-gemfile",
"ninoseki.vscode-gem-lens",
"EditorConfig.EditorConfig",
"streetsidesoftware.code-spell-checker",
"MS-vsliveshare.vsliveshare",
"donjayamanne.githistory",
"mikestead.dotenv",
"esbenp.prettier-vscode",
"Gruntfuggly.todo-tree",
"pranaygp.vscode-css-peek",
"jeff-hykin.better-dockerfile-syntax"
]
},
"settings": {
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh",
"icon": "terminal-linux",
"args": [
"-l"
]
}
},
"rubyLsp.bundleGemfile": ".devcontainer/lsp/Gemfile",
"dev.containers.copyGitConfig": false,
"dev.containers.gitCredentialHelperConfigLocation": "system",
"editor.tabSize": 2,
"files.readonlyFromPermissions": true,
"terminal.integrated.defaultProfile.linux": "zsh",
"terminal.integrated.tabs.description": "",
"terminal.integrated.tabs.title": "${local}${separator}${cwdFolder}${separator}${process}",
"window.title": "${localWorkspaceFolderBasename}"
}
}
}