Skip to content

Commit ff56cf9

Browse files
committed
docs: add mermaid graph to .devcontainer/README.md
1 parent 4c380ca commit ff56cf9

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.devcontainer/README.md

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,56 @@ limitations under the License.
1919

2020
> Warning: Dev Containers (aka `devcontainers`) is an evolving feature and we are not testing in CI. Please submit any problem/feedback using the issues on GitHub.
2121
22+
```mermaid
23+
graph TB
24+
subgraph "Developer Laptop"
25+
subgraph IDE["Cursor/VS Code"]
26+
EXT["Dev Container Extension"]
27+
SSHEXT["Remote-SSH Extension"]
28+
end
29+
TERM["iTerm/Terminal"]
30+
end
31+
32+
subgraph WS["Linux Workstation"]
33+
DIR["~/dynamo<br/>(host directory)"]
34+
HFCACHE["~/.cache/huggingface<br/>(host cache)"]
35+
GITCONFIG["~/.gitconfig<br/>(host git config)"]
36+
37+
subgraph CONTAINER["Docker Container<br/>vsc-dynamo-SHA-uid<br/>Running as: ubuntu user"]
38+
MOUNT["/home/ubuntu/dynamo<br/>(mounted directory)"]
39+
HFMOUNT["/home/ubuntu/.cache/huggingface<br/>(mounted cache)"]
40+
GITCONFIGCOPY["/home/ubuntu/.gitconfig<br/>(via Dev Container setting)"]
41+
TOOLS["rust-analyzer<br/>cargo<br/>etc."]
42+
end
43+
44+
IMAGE["Docker Image<br/>dynamo:latest-vllm-dev"]
45+
46+
IMAGE -->|"docker run<br/>as ubuntu user"| CONTAINER
47+
end
48+
49+
TERM -->|"SSH Connection"| DIR
50+
SSHEXT -->|"1. Remote-SSH"| DIR
51+
EXT -->|"2. Dev Container:<br/>Open Folder (via ssh)"| IMAGE
52+
EXT -->|"3. IDE/shell via<br/>ssh+docker exec"| CONTAINER
53+
DIR <-.->|"Volume Mount<br/>(bidirectional)"| MOUNT
54+
HFCACHE <-.->|"Volume Mount<br/>(HF cache)"| HFMOUNT
55+
GITCONFIG -->|"Copy"| GITCONFIGCOPY
56+
57+
style IDE fill:#e1f5fe
58+
style EXT fill:#cfe2ff
59+
style SSHEXT fill:#cfe2ff
60+
style TERM fill:#e1f5fe
61+
style DIR fill:#fff3e0
62+
style HFCACHE fill:#fff3e0
63+
style GITCONFIG fill:#fff3e0
64+
style IMAGE fill:#f3e5f5
65+
style CONTAINER fill:#d4edda
66+
style MOUNT fill:#fff9c4
67+
style HFMOUNT fill:#fff9c4
68+
style GITCONFIGCOPY fill:#fff9c4
69+
style TOOLS fill:#ffebee
70+
```
71+
2272
## Prerequisites
2373

2474
Before you begin, ensure you have the following installed:

0 commit comments

Comments
 (0)