feat: more ricing to the devcontainer
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
3 files changed
+25
-8
No files matched your search
@@ -34,6 +34,7 @@ for installer_path in \
|
||||
"fluxcd/flux2!!?as=flux" \
|
||||
"go-task/task!" \
|
||||
"k0sproject/k0sctl!" \
|
||||
"derailed/k9s!" \
|
||||
"stern/stern!" \
|
||||
"siderolabs/talos!!?as=talosctl" \
|
||||
"yannh/kubeconform!"
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
"name": "Flux Cluster Template",
|
||||
"image": "ghcr.io/onedr0p/flux-cluster-template/devcontainer:base",
|
||||
"postCreateCommand": {
|
||||
"deps": "bash ${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
|
||||
"deps": "${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,7 @@ set -e
|
||||
set -o noglob
|
||||
|
||||
# Create the fish configuration directory
|
||||
mkdir -p ~/.config/fish/conf.d
|
||||
mkdir -p ~/.config/fish/{completions,conf.d}
|
||||
|
||||
# Hook direnv into fish
|
||||
tee ~/.config/fish/conf.d/direnv.fish > /dev/null <<EOF
|
||||
@@ -15,11 +15,27 @@ tee ~/.config/fish/conf.d/starship.fish > /dev/null <<EOF
|
||||
starship init fish | source
|
||||
EOF
|
||||
|
||||
# Setup fisher plugin manager for fish
|
||||
/usr/bin/fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
|
||||
/usr/bin/fish -c "fisher install decors/fish-colored-man"
|
||||
/usr/bin/fish -c "fisher install edc/bass"
|
||||
/usr/bin/fish -c "fisher install jorgebucaran/autopair.fish"
|
||||
/usr/bin/fish -c "fisher install nickeb96/puffer-fish"
|
||||
|
||||
# Setup CLI tools autocompletions for fish
|
||||
for tool in cilium flux helm k9s kubectl kustomize talhelper talosctl; do
|
||||
$tool completion fish > ~/.config/fish/completions/$tool.fish
|
||||
done
|
||||
gh completion --shell fish > ~/.config/fish/completions/gh.fish
|
||||
k0sctl completion --shell fish > ~/.config/fish/completions/k0sctl.fish
|
||||
stern --completion fish > ~/.config/fish/completions/stern.fish
|
||||
yq shell-completion fish > ~/.config/fish/completions/yq.fish
|
||||
|
||||
# Create/update virtual environment
|
||||
if ! grep -q "/workspaces/flux-template-cluster/.venv" .venv/pyvenv.cfg; then
|
||||
rm -rf .venv
|
||||
fi
|
||||
task workstation:venv
|
||||
|
||||
# Export the direnv environment variables
|
||||
task workstation:direnv
|
||||
|
||||
# Remove the .venv directory
|
||||
rm -rf .venv
|
||||
|
||||
# Create a new virtual environment
|
||||
task workstation:venv
|
||||
Reference in new issue
Block a user