Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
usrbinkat authored Jan 21, 2024
0 parents commit f3a9b3f
Show file tree
Hide file tree
Showing 143 changed files with 15,507 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
// Reference:
// - https://containers.dev/features
// - https://containers.dev/implementors/features
// - https://containers.dev/implementors/json_reference
// - https://code.visualstudio.com/docs/getstarted/settings
{
"name": "konductor",
"image": "ghcr.io/containercraft/konductor",
//"dockerFile": ".github/docker/Dockerfile",
"customizations": {
"vscode": {
"settings": {
// https://github.com/VSCodeVim/Vim
"vim.disableExtension": true,
"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.lineNumbers": "relative",
"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.fontFamily": "FiraMono Nerd Font Mono",
//"terminal.integrated.shell.linux": "/usr/bin/fish",
"terminal.integrated.shell.linux": "/usr/bin/bash",
"terminal.integrated.shellArgs.linux": ["-c", "connect"],
"terminal.integrated.sendKeybindingsToShell": true,
"workbench.colorTheme": "Dracula Soft",
"explorer.openEditors.visible": 1,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true
},
"extensions": [
"golang.go",
"vscodevim.vim",
"github.copilot",
"vscodevim.vim",
"ms-python.python",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"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",
"bierner.markdown-preview-github-styles"
]
}
},
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"remoteUser": "vscode",
"forwardPorts": [1313, 2222, 6000, 7681, 8080],
"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
}
87 changes: 87 additions & 0 deletions .devcontainer/kind/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// Reference:
// - https://containers.dev/features
// - https://containers.dev/implementors/features
// - https://code.visualstudio.com/docs/getstarted/settings
{
"name": "konductor-kind",
"image": "ghcr.io/containercraft/konductor:latest",
"customizations": {
"vscode": {
"settings": {
// https://github.com/VSCodeVim/Vim
//"keyboard.dispatch": "keyCode",
//"vim.leader": "<space>",
"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-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"]
}
86 changes: 86 additions & 0 deletions .devcontainer/localstack/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": "konductor-localstack",
"image": "ghcr.io/containercraft/konductor:latest",
"customizations": {
"vscode": {
"settings": {
// https://github.com/VSCodeVim/Vim
"vim.easymotion": true,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"keyboard.dispatch": "keyCode",
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<Esc>"]
}
],
"vim.leader": "<space>",
"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",
"ms-python.python",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"mtunique.vim-fcitx-remote",
"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/localstack:2": {},
},
"postCreateCommand": "git submodule update --init --recursive",
"remoteUser": "vscode",
"forwardPorts": [1313, 2222, 6000, 7681, 8080],
"runArgs": ["--network=host"]
}
65 changes: 65 additions & 0 deletions .devcontainer/science/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"name": "konductor-gpt",
"image": "ghcr.io/containercraft/konductor",
"remoteUser": "vscode",
"forwardPorts": [1313, 2222, 6000, 7681, 8080],
"postCreateCommand": "direnv allow 2>/dev/null || true; tmux list-sessions 2>/dev/null || true",
"mounts": ["source=dind-var-lib-docker,target=/var/lib/docker,type=volume"],
"runArgs": ["--init", "--privileged", "--network=host"],
"overrideCommand": false,
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {}
},
"customizations": {
"vscode": {
"settings": {
"terminal.integrated.shell.linux": "/usr/bin/bash",
"terminal.integrated.fontFamily": "FiraMono Nerd Font Mono",
"terminal.integrated.shellArgs.linux": ["-c", "connect"],
"workbench.colorTheme": "Dracula Soft",
"editor.minimap.enabled": false,
"editor.lineNumbers": "relative",
"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",
"explorer.openEditors.visible": 1,
"files.trimTrailingWhitespace": true,
"files.trimFinalNewlines": true,
"python.analysis.autoSearchPaths": true,
"python.analysis.diagnosticSeverityOverrides": {
"reportMissingImports": "error"
},
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.formatting.autopep8Path": "autopep8",
"python.formatting.blackPath": "black",
"python.formatting.yapfPath": "yapf",
"eslint.alwaysShowStatus": true,
"eslint.format.enable": true,
"eslint.lintTask.enable": true,
"git.autofetch": true
},
"extensions": [
"golang.go",
"ms-python.python",
"redhat.vscode-yaml",
"esbenp.prettier-vscode",
"ms-azuretools.vscode-docker",
"ms-vscode-remote.remote-containers",
"ms-vscode.vscode-typescript-next",
"bierner.markdown-preview-github-styles",
"ms-vscode.cpptools-extension-pack",
"ms-vscode.cpptools",
"ms-vscode-remote.remote-ssh",
"eamodio.gitlens",
"dbaeumer.vscode-eslint",
"ms-kubernetes-tools.vscode-kubernetes-tools"
]
}
}
}
6 changes: 6 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export PULUMI_HOME=${PWD}/.pulumi
export PULUMI_SKIP_UPDATE_CHECK=true
export PULUMI_SKIP_CONFIRMATIONS=true
export KUBECONFIG=${PWD}/.kube/config
export TALOSCONFIG=${PWD}/.talos/config
source ${HOME}/.env_tmux 2>/dev/null || true
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
3 changes: 3 additions & 0 deletions .github/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM ghcr.io/containercraft/konductor:latest
ENTRYPOINT /bin/entrypoint
CMD ["/usr/bin/env", "connect"]
Binary file added .github/images/konductor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f3a9b3f

Please sign in to comment.