-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (37 loc) · 1.19 KB
/
Copy pathMakefile
File metadata and controls
46 lines (37 loc) · 1.19 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
.PHONY: build run test help
# Build production image
build:
docker build -t danielapatin/sequentialthinking .
# Run production container
run: build
docker run --rm -p 8080:8080 danielapatin/sequentialthinking
# Run tests in container
test:
docker run --rm -v $(PWD):/app -w /app golang:1.24-alpine go test -v
# Build binary locally
build-local:
go build -o sequentialthinking-server .
# Run locally (STDIO mode - default)
run-local:
./sequentialthinking-server
# Run in stdio mode (explicit)
run-stdio:
./sequentialthinking-server -transport stdio
# Run in SSE mode
run-sse:
./sequentialthinking-server -transport sse -port 8080
# Run in HTTP mode
run-http:
./sequentialthinking-server -transport http -port 8080
# Show help
help:
@echo "Available commands:"
@echo " build - Build production Docker image"
@echo " run - Run production container"
@echo " test - Run tests in container"
@echo " build-local - Build binary locally"
@echo " run-local - Run locally (STDIO mode)"
@echo " run-stdio - Run in STDIO mode"
@echo " run-sse - Run in SSE mode on port 8080"
@echo " run-http - Run in HTTP mode on port 8080"
@echo " help - Show this help"