-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdevcontainer.vim.template.json
More file actions
104 lines (104 loc) · 3.56 KB
/
devcontainer.vim.template.json
File metadata and controls
104 lines (104 loc) · 3.56 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"remoteEnv": {
"EDITOR": "~/squashfs-root/AppRun",
"PAGER": "sed -r 's/\\x1B\\[[0-9;]*[mGKH]//g' | ~/squashfs-root/AppRun -R -",
"LESSCHARSET": "utf-8",
"SHELL": "bash",
"TERM": "xterm-256color",
"HISTCONTROL": "erasedups",
// If use WSLG
// "DISPLAY": "${localEnv:DISPLAY}",
// "WAYLAND_DISPLAY": "${localEnv:WAYLAND_DISPLAY}",
// "XDG_RUNTIME_DIR": "${localEnv:XDG_RUNTIME_DIR}",
// "PULSE_SERVER": "${localEnv:PULSE_SERVER}",
// If use codex
// "OPENAI_API_KEY": "${localEnv:OPENAI_API_KEY}",
},
// If use claude code
// "postCreateCommand": "npm install -g @anthropic-ai/claude-code",
// If use codex
// "postCreateCommand": "npm install -g @openai/codex",
// If use Gemini
// "postCreateCommand": "npm install -g @google/gemini-cli",
// devcontainer/cli はまだ forwardPorts に対応していないため、
// 必要に応じて forwardPorts の定義を appPort に転記する。
// ※ コンテナ側で Listen する際は、 `127.0.0.1` **ではなく** `0.0.0.0` で Listen すること。
// "appPort": [
// ],
// Linux で実行する場合には、 runArgs をコメントアウトし、コンテナからホストへの接続ができるようにしてください
//"runArgs": [
// "--add-host=host.docker.internal:host-gateway"
//],
"mounts": [
{
"type": "bind",
"source": "${localEnv:HOME}/.vim",
"target": "{{ remoteEnv:HOME }}/.vim"
},
{
"type": "bind",
"source": "${localEnv:HOME}/.gitconfig",
"target": "{{ remoteEnv:HOME }}/.gitconfig"
},
{
"type": "bind",
"source": "${localEnv:HOME}/.ssh",
"target": "{{ remoteEnv:HOME }}/.ssh"
},
// If use host's bashrc
//{
// "type": "bind",
// "source": "${localEnv:HOME}/.bashrc",
// "target": "{{ remoteEnv:HOME }}/.bashrc"
//},
// If use WSLG
//{
// "type": "bind",
// "source": "/tmp/.X11-unix",
// "target": "/tmp/.X11-unix"
//},
//{
// "type": "bind",
// "source": "/mnt/wslg",
// "target": "/mnt/wslg"
//},
// If use claude code
//{
// "type": "bind",
// "source": "${localEnv:HOME}/.claude.json",
// "target": "{{ remoteEnv:HOME }}/.claude.json"
//},
// If use codex
//{
// "type": "bind",
// "source": "${localEnv:HOME}/.codex",
// "target": "{{ remoteEnv:HOME }}/.codex"
//},
// If use gemini
//{
// "type": "bind",
// "source": "${localEnv:HOME}/.gemini",
// "target": "{{ remoteEnv:HOME }}/.gemini"
//},
// If use github copilot
//{
// "type": "bind",
// "source": "${localEnv:HOME}/.config/github-copilot",
// "target": "{{ remoteEnv:HOME }}/.config/github-copilot"
//},
],
// denops など、別の実行環境が必要な場合や、
// 後乗せで追加したいツールがある場合には以下の対象行をコメントアウトするか
// https://containers.dev/features から必要な feature を探して追加してください。
//"features": {
// "ghcr.io/devcontainers-community/features/deno:1": {},
// "ghcr.io/devcontainers/features/node:1": {},
// "ghcr.io/devcontainers/features/python:1": {},
// "ghcr.io/devcontainers/features/ruby:1": {},
// "ghcr.io/devcontainers-extra/features/fzf:1": {},
// "ghcr.io/jungaretti/features/ripgrep:1": {},
// "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
// "ghcr.io/devcontainers/features/docker-in-docker:2": {},
// "ghcr.io/robbert229/devcontainer-features/postgresql-client:1": {},
//}
}