-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
61 lines (41 loc) · 1.18 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
49
50
51
52
53
54
55
56
57
58
59
60
61
PY := python3.10
VENV_PATH := .venv
BIN_PATH := $(VENV_PATH)/bin
PIP := $(BIN_PATH)/pip
ANSIBLE := $(BIN_PATH)/ansible
PLAY := $(BIN_PATH)/ansible-playbook
GALAXY := $(BIN_PATH)/ansible-galaxy
COMPONENTS := postgres metabase redis kafka rabbitmq clickhouse nacos localstack litellm livebook
.PHONY: default setup land clean
default: setup land
setup: venv pip.install npm.install ansible.galaxy brew.bundle
venv:
$(PY) -m venv $(VENV_PATH)
pip.freeze:
$(PIP) freeze > requirements.txt
pip.install:
$(PIP) install --upgrade -r requirements.txt
npm.install:
@npm install
ansible.galaxy:
@$(GALAXY) collection install community.docker --upgrade
@$(GALAXY) collection install kubernetes.core --upgrade
brew.bundle:
@brew bundle
land:
@$(PLAY) playbooks/site.yml -t land
$(COMPONENTS):
@$(PLAY) playbooks/site.yml -t component,$@
ollama.llama3:
-ollama pull llama3
ollama.dolphincoder:
-ollama pull dolphincoder
ollama.llm: ollama.llama3 ollama.dolphincoder
jupyter.lab:
$(PY) -m jupyter lab --NotebookApp.notebook_dir=./notebooks
livebook.open:
@open http://127.0.0.1:8080/
litellm.ui:
@open http://127.0.0.1:4444/ui
antora:
@watchexec -w docs -- npx antora antora-playbook.yml