-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
77 lines (58 loc) · 3.21 KB
/
Makefile
File metadata and controls
77 lines (58 loc) · 3.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.PHONY: up down shell rebuild logs himalaya playwright whisper start-services \
test run fetch dockerhost install-hooks \
memory-up memory-down memory-logs memory-health memory-test
# ── Core lifecycle ─────────────────────────────────────────────────
up:
docker compose up -d --build
down:
docker compose down
rebuild:
docker compose build --no-cache
logs:
docker compose logs -f
shell:
docker exec -it agentainer zsh
# ── Docker host access (opt-in profile) ────────────────────────────
dockerhost:
docker compose --profile dockerhost up -d --build
# ── Services inside container ──────────────────────────────────────
start-services:
docker exec -it agentainer bash -lc "/opt/scripts/entrypoint.sh zsh"
# ── Agent runner ───────────────────────────────────────────────────
# Usage: make run TASK="research playwright python examples"
run:
docker exec -it agentainer bash -lc "agentainer run '$(TASK)'"
# ── Browser fetch ──────────────────────────────────────────────────
# Usage: make fetch URL="https://example.com"
fetch:
docker exec -it agentainer bash -lc "agentainer-fetch '$(URL)'"
# ── Tool-specific targets ─────────────────────────────────────────
himalaya:
docker exec -it agentainer bash -lc "/opt/scripts/himalaya-bootstrap.sh && himalaya accounts && echo 'OK: himalaya configured'"
playwright:
docker exec -it agentainer bash -lc "python3 /opt/scripts/playwright_smoke.py"
whisper:
@echo "Example: docker exec -it agentainer bash -lc \"whisper ./audio.m4a --model small --language en --task transcribe\""
@true
# ── Testing ────────────────────────────────────────────────────────
test:
docker exec -it agentainer bash -lc "cd /workspace && pytest tests/ -v --tb=short"
# ── MCP Memory Server (opt-in profile) ────────────────────────────
memory-up:
docker compose --profile memory up -d --build
memory-down:
docker compose --profile memory down
memory-logs:
docker compose --profile memory logs -f mcp-memory
memory-health:
@curl -sf http://localhost:7411/health | python3 -m json.tool || echo "ERROR: mcp-memory not reachable"
memory-test:
cd services/mcp-memory && docker compose up -d postgres redis && \
sleep 3 && \
pip install -q -r requirements-test.txt && \
pytest tests/ -v --tb=short
# ── Secrets hygiene ────────────────────────────────────────────────
install-hooks:
cp scripts/pre-commit-secrets.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
@echo "Pre-commit hook installed."