2021-10-18 04:38:10 -07:00
|
|
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/go
|
|
|
|
{
|
2021-11-20 04:45:51 -08:00
|
|
|
"name": "oh-my-posh",
|
2021-10-18 04:38:10 -07:00
|
|
|
"build": {
|
|
|
|
"dockerfile": "Dockerfile",
|
|
|
|
"args": {
|
|
|
|
// Update the VARIANT arg to pick a version of Go: 1, 1.16, 1.17
|
|
|
|
// Append -bullseye or -buster to pin to an OS version.
|
|
|
|
// Use -bullseye variants on local arm64/Apple Silicon.
|
|
|
|
"VARIANT": "1.17-bullseye",
|
2021-11-20 04:45:51 -08:00
|
|
|
|
|
|
|
// Options:
|
|
|
|
|
2021-11-26 03:02:28 -08:00
|
|
|
"POSH_THEME": "/workspaces/oh-my-posh/themes/jandedobbeleer.omp.json",
|
2021-11-20 04:45:51 -08:00
|
|
|
|
|
|
|
// Override me with your own timezone:
|
|
|
|
"TZ": "UTC",
|
|
|
|
// Use one of the "TZ database name" entries from:
|
|
|
|
// https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
|
|
|
2021-10-18 04:38:10 -07:00
|
|
|
"NODE_VERSION": "lts/*"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"runArgs": ["--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined"],
|
|
|
|
|
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
|
|
"settings": {
|
|
|
|
"go.toolsManagement.checkForUpdates": "local",
|
|
|
|
"go.useLanguageServer": true,
|
|
|
|
"go.gopath": "/go",
|
|
|
|
"go.goroot": "/usr/local/go",
|
|
|
|
"terminal.integrated.profiles.linux": {
|
|
|
|
"bash": {
|
|
|
|
"path": "bash"
|
|
|
|
},
|
|
|
|
"zsh": {
|
|
|
|
"path": "zsh"
|
|
|
|
},
|
|
|
|
"fish": {
|
|
|
|
"path": "fish"
|
|
|
|
},
|
|
|
|
"tmux": {
|
|
|
|
"path": "tmux",
|
|
|
|
"icon": "terminal-tmux"
|
|
|
|
},
|
|
|
|
"pwsh": {
|
|
|
|
"path": "pwsh",
|
|
|
|
"icon": "terminal-powershell"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"terminal.integrated.defaultProfile.linux": "pwsh",
|
|
|
|
"terminal.integrated.defaultProfile.windows": "pwsh",
|
|
|
|
"terminal.integrated.defaultProfile.osx": "pwsh",
|
2021-11-20 04:45:51 -08:00
|
|
|
"tasks.statusbar.default.hide": true
|
2021-10-18 04:38:10 -07:00
|
|
|
},
|
|
|
|
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
|
|
"extensions": [
|
2021-11-20 04:45:51 -08:00
|
|
|
"actboy168.tasks",
|
2021-11-13 14:46:06 -08:00
|
|
|
"eamodio.gitlens",
|
2021-10-18 04:38:10 -07:00
|
|
|
"bungcip.better-toml",
|
2021-11-20 04:45:51 -08:00
|
|
|
"davidanson.vscode-markdownlint",
|
|
|
|
"editorconfig.editorconfig",
|
|
|
|
"esbenp.prettier-vscode",
|
|
|
|
"github.vscode-pull-request-github",
|
2021-10-18 07:52:37 -07:00
|
|
|
"golang.go",
|
2021-11-20 04:45:51 -08:00
|
|
|
"ms-vscode.powershell",
|
|
|
|
"redhat.vscode-yaml",
|
|
|
|
"yzhang.markdown-all-in-one"
|
2021-10-18 04:38:10 -07:00
|
|
|
],
|
|
|
|
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
2021-10-18 07:52:37 -07:00
|
|
|
// "forwardPorts": [3000],
|
2021-10-18 04:38:10 -07:00
|
|
|
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
|
|
// "postCreateCommand": "go version",
|
|
|
|
|
|
|
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
|
|
"remoteUser": "vscode"
|
|
|
|
}
|