feat(devcontainer): add devcontainer references here and in clustertool templates

This commit is contained in:
Kjeld Schouten
2024-11-03 21:26:51 +01:00
parent d6175ca88e
commit 2bb3e6cf5e
4 changed files with 62 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
"name": "ClusterTool Cluster",
"image": "tccr.io/tccr/devcontainer:latest",
"initializeCommand": "docker pull tccr.io/tccr/devcontainer:latest",
"postCreateCommand": {
"setup": "bash ${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
},
"postStartCommand": {
"git": "git config --global --add safe.directory ${containerWorkspaceFolder}"
}
}

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
set -o noglob
# Setup fisher plugin manager for fish and install plugins
/usr/bin/fish -c "
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install decors/fish-colored-man
fisher install edc/bass
fisher install jorgebucaran/autopair.fish
fisher install nickeb96/puffer-fish
fisher install PatrickF1/fzf.fish
"
# Create/update virtual environment
if ! grep -q "venv /workspaces/" .venv/pyvenv.cfg; then
rm -rf .venv
fi
task workstation:venv

View File

@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.schema.json",
"name": "TrueCharts",
"image": "tccr.io/tccr/devcontainer:latest",
"initializeCommand": "docker pull tccr.io/tccr/devcontainer:latest",
"postCreateCommand": {
"setup": "bash ${containerWorkspaceFolder}/.devcontainer/postCreateCommand.sh"
},
"postStartCommand": {
"git": "git config --global --add safe.directory ${containerWorkspaceFolder}"
}
}

View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
set -o noglob
# Setup fisher plugin manager for fish and install plugins
/usr/bin/fish -c "
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
fisher install decors/fish-colored-man
fisher install edc/bass
fisher install jorgebucaran/autopair.fish
fisher install nickeb96/puffer-fish
fisher install PatrickF1/fzf.fish
"
# Create/update virtual environment
if ! grep -q "venv /workspaces/" .venv/pyvenv.cfg; then
rm -rf .venv
fi
task workstation:venv