Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"extensions": [
"vscjava.vscode-java-pack",
"eamodio.gitlens",
"GitHub.copilot",
"anthropic.claude-code"
]
}
Expand All @@ -32,8 +31,19 @@
"--name",
"rtldev-middleware-java-sdk"
],
// The bind below names a *file*, and Docker creates a missing bind source itself,
// as a directory — on the host, where it outlives the container. Without this
// touch, post-create.sh's symlink would point at a directory and zsh could not
// write a line of history. Runs on the host before the container is created, so
// it cannot live in post-create.sh. (RSRMID-3052)
"initializeCommand": "touch ${localEnv:HOME}/.zsh_history",
// Only the history file, never the host home. This used to mount ${localEnv:HOME}
// at /WSL_USER to reach that one file, which handed the container read-write reach
// over the host's SSH keys, credentials and every other repository on the machine.
// post-create.sh symlinks ~/.zsh_history to this path; this repository is not on
// the devbase Feature, so that script is what makes history persist here.
"mounts": [
"source=${localEnv:HOME}${localEnv:USERPROFILE},target=/WSL_USER,type=bind,consistency=cached"
"source=${localEnv:HOME}/.zsh_history,target=/WSL_USER/.zsh_history,type=bind,consistency=cached"
],
"remoteUser": "vscode"
}
Loading