-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
43 lines (32 loc) · 899 Bytes
/
justfile
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
# runs archiver with cargo with logging set to debug
run:
RUST_LOG=debug cargo run
# builds a release version of archiver
build:
cargo build --release
# deploy archiver stack
docker:
docker compose up -d
docker exec -it ollama ollama pull mistral
docker exec -it ollama ollama pull nomic-embed-text
# install pandocs
install_deps:
brew install pandoc just ollama
curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
curl -sSf https://install.surrealdb.com | sh
ollama pull mistral
ollama pull nomic-embed-text
# list process and checks what process is running on port 8888
where:
ps | grep surreal
-lsof -i tcp:8888
# setup surreal server
setup_local:
surreal start --log trace --bind 127.0.0.1:8888 file:archiver.db
# adds file the surrealdb
add FILE:
-cargo run -- -a {{FILE}}
# removes surreal database file
clean:
rm -rf archiver.db