Skip to content

Commit

Permalink
add devcontainer with kind kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat committed Jan 10, 2024
1 parent 7ed0e6c commit 73590b0
Show file tree
Hide file tree
Showing 2 changed files with 135 additions and 31 deletions.
86 changes: 86 additions & 0 deletions containers/kind/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
// Reference:
// - https://containers.dev/features
// - https://containers.dev/implementors/features
// - https://code.visualstudio.com/docs/getstarted/settings
{
"name": "pulumi-devcontainer",
"image": "ghcr.io/pulumi/devcontainer:latest",
"customizations": {
"vscode": {
"settings": {
// https://github.com/VSCodeVim/Vim
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false
},
"extensions.experimental.affinity": {
"vscodevim.vim": 1
},
"go.testTags": "all",
"go.buildTags": "all",
"editor.minimap.enabled": false,
"editor.quickSuggestionsDelay": 0,
"editor.suggestSelection": "first",
"editor.snippetSuggestions": "top",
"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.sendKeybindingsToShell": true,
"terminal.integrated.fontFamily": "FiraMono Nerd Font Mono",
"workbench.colorTheme": "Dracula Soft",
"explorer.openEditors.visible": 1,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true
},
"extensions": [
"golang.go",
"vscodevim.vim",
"github.copilot",
"ms-python.python",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"ms-vscode.makefile-tools",
"ms-azuretools.vscode-docker",
"github.vscode-pull-request-github",
"ms-vscode-remote.remote-containers",
"visualstudioexptteam.vscodeintellicode",
"bierner.markdown-preview-github-styles"
]
}
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"username": "vscode",
"userGid": "automatic",
"userUid": "automatic",
"upgradePackages": true,
"nonFreePackages": true
},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false,
"installDockerBuildx": true,
"version": "latest",
"dockerDashComposeVersion": "v2"
},
"ghcr.io/devcontainers-contrib/features/kind:1": {}
},
"postCreateCommand": "git submodule update --init --recursive",
"remoteUser": "vscode",
"forwardPorts": [1313, 2222, 6000, 7681, 8080],
"runArgs": ["--network=host"]
}

80 changes: 49 additions & 31 deletions devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,57 @@
// - https://containers.dev/implementors/features
// - https://code.visualstudio.com/docs/getstarted/settings
{
"name": "pulumi",
"image": "ghcr.io/pulumi/devcontainer",
"name": "pulumi-devcontainer",
"image": "ghcr.io/pulumi/devcontainer:latest",
"customizations": {
"vscode": {
"settings": [
"go.testTags", "all",
"go.buildTags", "all",
"editor.minimap.enabled", false,
"explorer.openEditors.visible", 1,
"editor.quickSuggestionsDelay", 0,
"editor.suggestSelection", "first",
"editor.snippetSuggestions", "top",
"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/zsh",
"files.trimTrailingWhitespace", true,
"files.trimFinalNewlines", true
],
"settings": {
// https://github.com/VSCodeVim/Vim
//"vim.easymotion": true,
//"vim.incsearch": true,
//"vim.useSystemClipboard": true,
//"vim.useCtrlKeys": true,
//"vim.hlsearch": true,
//"vim.insertModeKeyBindings": [
// {
// "before": ["j", "j"],
// "after": ["<Esc>"]
// }
//],
//"vim.handleKeys": {
// "<C-a>": false,
// "<C-f>": false
//},
//"extensions.experimental.affinity": {
// "vscodevim.vim": 1
//},
"go.testTags": "all",
"go.buildTags": "all",
"editor.minimap.enabled": false,
"editor.quickSuggestionsDelay": 0,
"editor.suggestSelection": "first",
"editor.snippetSuggestions": "top",
"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.sendKeybindingsToShell": true,
"terminal.integrated.fontFamily": "FiraMono Nerd Font Mono",
"workbench.colorTheme": "Dracula Soft",
"explorer.openEditors.visible": 1,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true
},
"extensions": [
"golang.go",
"github.copilot",
//"vscodevim.vim",
"ms-python.python",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"ms-vscode.makefile-tools",
"mtunique.vim-fcitx-remote",
"ms-azuretools.vscode-docker",
"github.vscode-pull-request-github",
"ms-vscode-remote.remote-containers",
Expand All @@ -42,26 +64,22 @@
},
"features": {
"ghcr.io/devcontainers/features/common-utils:2": {
"installZsh": true,
"configureZshAsDefaultShell": true,
"installOhMyZsh": true,
"installOhMyZshConfig": true,
"upgradePackages": true,
"nonFreePackages": true,
"username": "vscode",
"userGid": "automatic",
"userUid": "automatic",
"userGid": "automatic"
"upgradePackages": false,
"nonFreePackages": true
},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"moby": false,
"installDockerBuildx": true,
"dockerDashComposeVersion": "v2",
"version": "latest",
"dockerDashComposeVersion": "v2"
"moby": false
}
},
"postCreateCommand": "git submodule update --init --recursive",
"postCreateCommand": "git submodule update --init --recursive; direnv allow",
"remoteUser": "vscode",
"forwardPorts": [1313],
"forwardPorts": [1313, 2222, 6000, 7681, 8080],
"runArgs": ["--network=host"]
}

0 comments on commit 73590b0

Please sign in to comment.