Skip to content

Commit 6634603

Browse files
committed
feat(youtube builder): add builder and guide
1 parent d695532 commit 6634603

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,16 @@
4747

4848
## Getting Started
4949

50-
Build images with:
50+
Build community youtube MCP image with:
51+
52+
```bash
53+
./community/youtube/build.sh
54+
```
55+
56+
> [!TIP]
57+
> Instead of cloning or submoduling the repository locally, then building the image, this script builds the Docker image inside a temporary Docker-in-Docker container. This approach avoids polluting your local environment with throwaway files by cleaning up everything once the container exits.
58+
59+
Then build the other images with:
5160

5261
```bash
5362
docker compose -f compose-dev.yaml build
@@ -83,7 +92,7 @@ docker compose up -d
8392

8493
### VSCode Devcontainer
8594

86-
> [!WARNING]
95+
> [!WARNING]
8796
> Only replace the following if you plan to start debugger for FastAPI server in VSCode.
8897
8998
Replace `./compose-dev.yaml` entrypoint to allow debugging FastAPI server:

community/youtube/build.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
docker run --rm -it --entrypoint sh \
4+
--volume /var/run/docker.sock:/var/run/docker.sock \
5+
--workdir /app \
6+
docker:dind \
7+
-c "
8+
git clone https://github.com/Klavis-AI/klavis.git . && \
9+
touch mcp_servers/youtube/.env && \
10+
docker build -t youtube-mcp-server -f mcp_servers/youtube/Dockerfile .
11+
"

0 commit comments

Comments
 (0)