-
Notifications
You must be signed in to change notification settings - Fork 0
/
devbox.json
37 lines (37 loc) · 1.02 KB
/
devbox.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{
"packages": [
"kind@latest",
"kubectl@latest",
"podman@latest"
],
"env": {
"KIND_EXPERIMENTAL_PROVIDER": "podman"
},
"shell": {
"init_hook": [
"[ ! -t 0 ] || [ -z \"$PS1\" ] && return",
"echo 'Welcome to devbox!' > /dev/null",
"source <(kubectl completion bash)",
"alias k=kubectl",
"complete -o default -F __start_kubectl k",
"source <(kind completion bash)",
"source <(podman completion bash)",
"KIND_NODES=$(kind get nodes -A)",
"[ -n \"$KIND_NODES\" ] && podman restart $KIND_NODES >/dev/null"
],
"scripts": {
"test": [
"echo \"Error: no test specified\" && exit 1"
],
"setup-podman": [
"mkdir -p $HOME/.config/containers",
"cat <<EOF > $HOME/.config/containers/policy.json",
"{",
" \"default\": [{\"type\": \"insecureAcceptAnything\"}],",
" \"transports\": {\"docker-daemon\": {\"\": [{\"type\":\"insecureAcceptAnything\"}]}}",
"}",
"EOF"
]
}
}
}