mirror of
https://ghproxy.com/https://github.com/truecharts/charts.git
synced 2026-06-18 10:36:24 +08:00
feat(devcontainer): add devcontainer references here and in clustertool templates
This commit is contained in:
12
.devcontainer/devcontainer.json
Normal file
12
.devcontainer/devcontainer.json
Normal 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}"
|
||||
}
|
||||
}
|
||||
19
.devcontainer/postCreateCommand.sh
Executable file
19
.devcontainer/postCreateCommand.sh
Executable 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
|
||||
@@ -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}"
|
||||
}
|
||||
}
|
||||
19
clustertool/embed/generic/root/DOTREPLACEdevcontainer/postCreateCommand.sh
Executable file
19
clustertool/embed/generic/root/DOTREPLACEdevcontainer/postCreateCommand.sh
Executable 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
|
||||
Reference in New Issue
Block a user