forked from fireform-core/FireForm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
64 lines (51 loc) · 1.72 KB
/
Makefile
File metadata and controls
64 lines (51 loc) · 1.72 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
.PHONY: help build up down logs shell exec pull-model test clean fireform
help:
@printf '%s\n' \
' ______ ______ ' \
' / ____/(_)_______ / ____/___ _________ ___ ' \
' / /_ / // ___/ _ \ / /_ / __ \/ ___/ __ `__ \' \
' / __/ / // / / __/ / __/ / /_/ / / / / / / / /' \
'/_/ /_//_/ \___/ /_/ \____/_/ /_/ /_/ /_/ ' \
''
@echo ""
@echo "Fireform Development Commands"
@echo "=============================="
@echo "make fireform - Build and start containers, then open a shell"
@echo "make build - Build Docker images"
@echo "make up - Start all containers"
@echo "make down - Stop all containers"
@echo "make logs - View container logs"
@echo "make shell - Open Python shell in app container"
@echo "make exec - Execute Python script in container"
@echo "make pull-model - Pull Mistral model into Ollama"
@echo "make test - Run tests"
@echo "make clean - Remove containers"
@echo "make super-clean - [CAUTION] Use carefully. Cleans up ALL stopped containers, networks, build cache..."
fireform: build up
@echo "Launching interactive shell in the app container..."
docker compose exec app /bin/bash
build:
docker compose build
up:
docker compose up -d
down:
docker compose down
logs:
docker compose logs -f
logs-app:
docker compose logs -f app
logs-ollama:
docker compose logs -f ollama
shell:
docker compose exec app /bin/bash
exec:
docker compose exec app python3 src/main.py
pull-model:
docker compose exec ollama ollama pull mistral
test:
docker compose exec app python3 -m pytest src/test/
clean:
docker compose down -v
super-clean:
docker compose down -v
docker system prune