-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
devcontainer.json
79 lines (73 loc) · 2.41 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
79
{
"name": "Mojo (nightly)",
"build": {
"dockerfile": "Mojo.Dockerfile",
"args": {
"MOJO_VERSION": "nightly",
"UPSTREAM_REPOSITORY_URL": "https://github.com/modularml/mojo.git",
"LLVM_VERSION": "18", // optional
"MODULAR_TELEMETRY_ENABLE": "unset-to-keep-disabled",
"MODULAR_CRASHREPORTING_ENABLE": "unset-to-keep-disabled",
"USE_ZSH_FOR_ROOT": "unset-to-use-bash",
"LANG": "en_US.UTF-8",
"TZ": "Etc/UTC"
}
},
"onCreateCommand": "onCreateCommand.sh",
"postStartCommand": "${HOME}/.local/bin/dockerSystemPrune.sh",
"postAttachCommand": "${HOME}/.local/bin/checkForUpdates.sh && postAttachCommand.sh",
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"configureZshAsDefaultShell": true,
"upgradePackages": false,
"username": "vscode",
"userUid": "automatic",
"userGid": "automatic"
},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false
}
},
"customizations": {
"vscode": {
"extensions": [
"DavidAnson.vscode-markdownlint",
"editorconfig.editorconfig",
"exiasr.hadolint",
"GitHub.vscode-github-actions",
"GitHub.vscode-pull-request-github",
"mhutchie.git-graph",
"modular-mojotools.vscode-mojo-nightly",
"ms-azuretools.vscode-docker",
"ms-python.black-formatter",
"ms-python.python",
"ms-toolsai.jupyter",
"mutantdino.resourcemonitor",
"redhat.vscode-yaml",
"timonwong.shellcheck"
],
"settings": {
"git.alwaysSignOff": true,
"gitlens.showWelcomeOnInstall": false,
"gitlens.showWhatsNewAfterUpgrades": false,
"resmon.show.battery": false,
"resmon.show.cpufreq": false
}
}
},
// Set 'remoteUser' to 'root' to connect as root instead.
"remoteUser": "vscode",
"workspaceMount": "source=mojo-nightly-home-vscode,target=/home/vscode,type=volume",
"workspaceFolder": "/home/vscode/projects/modularml/mojo",
// "remoteUser": "root",
// "workspaceMount": "source=mojo-nightly-root,target=/root,type=volume",
// "workspaceFolder": "/root/projects/modularml/mojo",
"remoteEnv": {
// Local: Set URL for own repository
// "OWN_REPOSITORY_URL": "[email protected]:$GITHUB_USER/mojo.git",
//
// Pip: Install packages to the user site
"PIP_USER": "1"
}
}