-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (39 loc) · 1.15 KB
/
Makefile
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
DOCKER_COMPOSE_FILE=docker-compose.yml
.PHONY: all
all: help
.PHONY: help
help:
@echo "Available targets:"
@echo " setup-env - Set up the initial environment"
@echo " build - Build all Docker images"
@echo " up - Start all services using docker-compose"
@echo " down - Stop all services using docker-compose"
@echo " restart - Restart all services using docker-compose"
@echo " run-chainlit - Run the Chainlit UI for the LLM client"
@echo " run-client - Run the LLM client in terminal mode"
.PHONY: setup-env
setup-env:
@echo "Setting up the initial environment..."
uv sync --frozen --no-install-project --no-dev
.PHONY: build
build:
@echo "Building all Docker images..."
docker-compose build
.PHONY: up
up:
@echo "Starting all services..."
docker-compose up -d
.PHONY: down
down:
@echo "Stopping all services..."
docker-compose down
.PHONY: restart
restart: down up
.PHONY: run-chainlit
run-chainlit:
@echo "Starting Chainlit UI..."
cd llm-client && chainlit run chainlit_ui.py
.PHONY: run-client
run-client:
@echo "Starting LLM client in terminal mode..."
cd llm-client && python client.py