Skip to content

Commit a41b699

Browse files
authored
Update README.md (#49)
Embed architecture diagram as mermaid into README.md
1 parent 5b14461 commit a41b699

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

README.md

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,30 @@
2020

2121
## How It Works
2222

23-
![922e463d-d2cb-4e27-bf22-96ed54770305](https://github.com/user-attachments/assets/461930a4-cfab-4b91-ae3b-dee225cdc461)
24-
25-
1. BuildKit initiates a session via gRPC.
23+
```mermaid
24+
%%{init: {'theme': 'base', 'themeVariables': {
25+
'primaryColor': '#EFF6FF',
26+
'primaryBorderColor': '#2563EB',
27+
'lineColor': '#2563EB',
28+
'clusterBkg': '#EFF6FF',
29+
'clusterBorder': '#2563EB'
30+
}}}%%
31+
32+
flowchart LR
33+
classDef soft fill:#EFF6FF,stroke:#2563EB,stroke-width:2px,rx:8,ry:8,color:#111827;
34+
client["container build ..."]
35+
subgraph boundary["Builder Container"]
36+
direction LR
37+
shim["container‑builder-shim"]
38+
buildkit["buildkitd"]
39+
shim -- "Buildkit API (gRPC)" --> buildkit
40+
end
41+
42+
client -- BuilderAPI --> shim
43+
44+
```
45+
46+
1. Buildkit initiates a session via gRPC.
2647
2. container-builder-shim intercepts session requests (file sync, image resolution, etc.).
2748
3. Requests are translated to containerization's Build API format.
2849
4. containerization processes the build.

0 commit comments

Comments
 (0)