Show how to wire the proxy into docker-compose and devcontainer setups without guessing the required mounts and commands. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
11 lines
445 B
JSON
11 lines
445 B
JSON
{
|
|
"name": "app-with-host-git-cred-proxy",
|
|
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
|
|
"workspaceFolder": "/workspace",
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,consistency=cached",
|
|
"mounts": [
|
|
"source=${localEnv:HOST_GIT_CRED_PROXY_DIR},target=/opt/host-git-cred-proxy,type=bind,readonly"
|
|
],
|
|
"postCreateCommand": "/opt/host-git-cred-proxy/container/configure-git.sh --global"
|
|
}
|