Skip to content

Commit

Permalink
devcontainer.json overhaul and expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat committed Jan 28, 2024
1 parent d3da952 commit 32251b1
Show file tree
Hide file tree
Showing 3 changed files with 354 additions and 118 deletions.
327 changes: 259 additions & 68 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
// - https://containers.dev/features
// - https://containers.dev/implementors/features
// - https://containers.dev/implementors/json_reference
//
// This reference has all json properties and their descriptions:
// - https://code.visualstudio.com/docs/getstarted/settings
// Discarded Opts for tracking:
// - "workbench.tree.renderIndentGuides": "always",
{
"name": "konductor",
"dockerFile": "../.github/docker/Dockerfile",
Expand All @@ -11,67 +15,7 @@
"shutdownAction": "stopContainer",
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.cwd": "/home/vscode/Kargo",
"vim.disableExtension": true,
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.cursorStylePerMode": {
"normal": "line",
"insert": "block",
"visual": "underline",
"visualline": "underline",
"visualblock": "underline",
"replace": "block"
},
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<esc>"]
}
],
"vim.handleKeys": { "<C-a>": false, "<C-f>": false },
"extensions.experimental.affinity": {
"vscodevim.vim": 1
},
"remoteUser": "vscode",
"go.testTags": "all",
"go.buildTags": "all",
"editor.lineHeight": 15,
"editor.lineNumbers": "relative",
"updateRemoteUserUID": true,
"editor.fontLigatures": true,
"editor.minimap.enabled": false,
"editor.suggestSelection": "first",
"editor.snippetSuggestions": "top",
"editor.quickSuggestionsDelay": 0,
"editor.inlineSuggest.enabled": true,
"editor.fontFamily": "FiraMono Nerd Font Mono",
"editor.gotoLocation.multipleReferences": "goto",
"editor.gotoLocation.multipleDefinitions": "goto",
"editor.gotoLocation.multipleDeclarations": "goto",
"editor.gotoLocation.multipleImplementations": "goto",
"editor.gotoLocation.multipleTypeDefinitions": "goto",
"editor.terminal.integrated.shell.linux": "/usr/bin/fish",
"terminal.integrated.fontFamily": "FiraMono Nerd Font Mono",
"terminal.integrated.shell.linux": "/usr/bin/fish",
"terminal.integrated.sendKeybindingsToShell": true,
"autoOpenPreviewPanel.openPreviewToTheSide": false,
"files.trimTrailingWhitespace": false,
"explorer.openEditors.visible": 1,
"files.trimFinalNewlines": false,
"workbench.startupEditor": "readme",
"workbench.colorTheme": "Cyberpunk",
"window.titleBarStyle": "custom",
"2gua.rainbow-brackets": true,
"initializeCommand": "echo 'Initializing...'",
"postCreateCommand": "echo 'Post create...'",
"postStartCommand": "echo 'Post start...'",
"postAttachCommand": "echo 'Post attach...'"
},
"telemetry.enableTelemetry": "off",
"extensions": [
"golang.go",
"vscodevim.vim",
Expand All @@ -81,26 +25,273 @@
"ms-python.python",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"oderwat.indent-rainbow",
"ms-vsliveshare.vsliveshare",
"ms-azuretools.vscode-docker",
"github.vscode-github-actions",
"ms-vscode.vscode-typescript-next",
"github.vscode-pull-request-github",
"ms-vscode-remote.remote-containers",
"visualstudioexptteam.vscodeintellicode",
"chadonsom.auto-view-readme",
"bierner.markdown-preview-github-styles",
"matt-rudge.auto-open-preview-panel",
"bierner.markdown-preview-github-styles"
]
"chadonsom.auto-view-readme"
],
"extensions.experimental.affinity": {
"vscodevim.vim": 1
},
"settings": {
"remoteUser": "vscode",
"updateRemoteUserUID": true,
"editor": {
"bracketPairColorization": {
"enabled": true
},
"enablePreview": true,
"showTabs": true,
"showIcons": true,
"tabCloseButton": "right",
"tabSizing": "shrink",
"tabScrolling": "auto",
"tabDecoration": true,
"tabFocusMode": true,
"tabHistoryNavigation": true,
"openPositioning": "right",
"closeOnFileDelete": true,
"restoreViewState": true,
"scrollBeyondLastLine": true,
"scrollbar": {
"alwaysConsumeMouseWheel": true
},
"highlightModifiedTabs": true,
"highlightActiveIndentGuide": true,
"startupEditor": "readme",
"settings": {
"editor": "json"
},
"tabSize": 2,
"fontSize": 14,
"wordWrap": "on",
"lineHeight": 20,
"autoIndent": true,
"formatOnSave": true,
"insertSpaces": true,
"lineNumbers": "relative",
"fontLigatures": true,
"minimap.enabled": false,
"renderWhitespace": "all",
"suggestSelection": "first",
"snippetSuggestions": "top",
"quickSuggestionsDelay": 50,
"inlineSuggest.enabled": true,
"parameterHints.enabled": true,
"trimTrailingWhitespace": true,
"fontFamily": "'FiraMono Nerd Font Mono', monospace",
"autoSave": "onFocusChange",
"gotoLocation": {
"multipleDefinitions": "goto",
"multipleDeclarations": "goto",
"multipleImplementations": "goto",
"multipleReferences": "goto",
"multipleTypeDefinitions": "goto"
}
},
"vim": {
"disableExtension": true,
"cursorStylePerMode": {
"normal": "line",
"insert": "block",
"visual": "underline",
"visualline": "underline",
"visualblock": "underline",
"replace": "block"
},
"insertModeKeyBindings": [
{
"before": [
"j",
"j"
],
"after": [
"<esc>"
]
}
],
"handleKeys": {
"<C-a>": false,
"<C-f>": false
},
"useSystemClipboard": true,
"useCtrlKeys": true,
"easymotion": true,
"incsearch": true,
"hlsearch": true
},
"go": {
"formatTool": "goimports",
"formatFlags": [
"-local",
"github.com/konductor"
],
"buildOnSave": "off",
"vetOnSave": "off",
"lintOnSave": "off",
"testOnSave": "off",
"generateTestsFlags": [
"-count=1"
],
"testEnvVars": {
"GOFLAGS": "-count=1"
},
"testTags": "all",
"buildTags": "all"
},
"terminal": {
"integrated": {
"hideOnStartup": false,
"copyOnSelection": true,
"cwd": "/home/vscode/Kargo",
"fontFamily": "FiraMono Nerd Font Mono",
"fontSize": 14,
"scrollback": 10000,
"cursorBlinking": true,
"cursorStyle": "outline",
"cursorStyleInactive": "line",
"sendKeybindingsToShell": true,
"scrollbar": {
"alwaysConsumeMouseWheel": true
},
"shell": {
"linux": "/usr/bin/fish"
}
}
},
"files": {
"trimTrailingWhitespace": true,
"trimFinalNewlines": true,
"insertFinalNewline": true,
"autoSave": "onFocusChange",
"encoding": "utf8"
},
"zenmode": {
"silentNotifications": true,
"fullScreen": true,
"centerLayout": false,
"hideTabs": true,
"hideStatusBar": true,
"hideActivityBar": true,
"hideLineNumbers": false,
"hideLineDecorations": false,
"hideCursorInOverviewRuler": true,
"hideMinimap": true,
"toggle": true
},
"colorTheme": "Cyberpunk",
"explorer": {
"openEditors": {
"visible": 1
},
"autoRevealExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true
},
"autoReveal": true,
"sortOrder": "filesFirst"
},
"autoOpenPreviewPanel.openPreviewToTheSide": false,
"window": {
"titleBarStyle": "custom",
"title": "${dirty}${activeEditorShort}${separator}${rootName}${separator}${profileName}${separator}"
},
"initializeCommand": "echo 'Initializing...'",
"postCreateCommand": "echo 'Post create...'",
"postStartCommand": "echo 'Post start...'",
"postAttachCommand": "echo 'Post attach...'",
"git": {
"enabled": true,
"autofetch": true,
"autoStash": true,
"autorefresh": true,
"gitProtocol": "https",
"ignoreSubmodules": true,
"enableSmartCommit": true,
"ignoreLegacyWarning": true,
"autoRepositoryDetection": "openEditors",
"defaultCloneParentDirectory": "/home/vscode",
"scanRepositories": [
"/home/vscode",
"/home/vscode/Kargo",
"/home/vscode/Kargo/.github/devcontainer",
"/workspaces"
],
"path": "/usr/local/bin/git"
},
"remote": {
"localPortHost": "127.0.0.1",
"restoreForwardedPorts": true
},
"[yaml]": {
"editor": {
"trimTrailingWhitespace": true,
"insertFinalNewline": true,
"wordWrap": "off",
"lineNumbers": "relative",
"renderWhitespace": "all",
"autoSave": "onFocusChange",
"formatOnSave": true,
"insertSpaces": true,
"tabSize": 2,
"minimap.enabled": true,
"scrollBeyondLastLine": true,
"scrollbar": {
"alwaysConsumeMouseWheel": true
}
}
},
"[markdown]": {
"editor": {
"trimTrailingWhitespace": false,
"insertFinalNewline": true,
"wordWrap": "on",
"lineNumbers": "relative",
"renderWhitespace": "all",
"autoSave": "onFocusChange",
"formatOnSave": true,
"insertSpaces": true,
"tabSize": 4,
"minimap.enabled": false,
"scrollBeyondLastLine": true,
"scrollbar": {
"alwaysConsumeMouseWheel": true
}
}
},
"search": {
"defaultViewMode": "list"
}
}
}
},
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"remoteUser": "vscode",
"forwardPorts": [1313, 2222, 6000, 7681, 8080],
"overrideCommand": false,
"forwardPorts": [
1313,
2222,
6000,
7681,
8080
],
"runArgs": [
"--init",
"--privileged",
"--network=host"
],
"postCreateCommand": "sudo chown $USER /workspaces/* 2>/dev/null || true; direnv allow 2>/dev/null || true",
"mounts": ["source=dind-var-lib-docker,target=/var/lib/docker,type=volume"],
"runArgs": ["--init", "--privileged", "--network=host"],
"overrideCommand": false
"mounts": [
"source=dind-var-lib-docker,target=/var/lib/docker,type=volume"
]
}
Loading

0 comments on commit 32251b1

Please sign in to comment.