Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

add pulumi-devcontainer-kind flavor #28

Merged
merged 5 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image: ghcr.io/pulumi/devcontainer
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-kind",
"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"]
}

Loading