tangled
alpha
login
or
join now
parakeet.at
/
parakeet
63
fork
atom
Parakeet is a Rust-based Bluesky AppServer aiming to implement most of the functionality required to support the Bluesky client
appview
atproto
bluesky
rust
appserver
63
fork
atom
overview
issues
12
pulls
pipelines
feat: here's some justfiles to make my life easier
mia.omg.lol
7 months ago
88e54fd1
6f22f0a2
+57
-3
7 changed files
expand all
collapse all
unified
split
consumer
justfile
run.sh
justfile
parakeet
justfile
run.sh
parakeet-index
justfile
run.sh
+11
consumer/justfile
···
1
1
+
@release:
2
2
+
cargo build --release
3
3
+
4
4
+
@lint:
5
5
+
cargo clippy
6
6
+
7
7
+
@run +params:
8
8
+
cargo run -- {{params}}
9
9
+
10
10
+
@docker platform='linux/amd64' branch='main':
11
11
+
docker buildx build --platform {{platform}} -t registry.gitlab.com/parakeet-social/parakeet/consumer:{{branch}} . -f consumer/Dockerfile
-1
consumer/run.sh
···
1
1
-
cargo run
+24
justfile
···
1
1
+
mod consumer
2
2
+
mod parakeet
3
3
+
mod parakeet-index
4
4
+
5
5
+
alias run-consumer := consumer::run
6
6
+
alias run-parakeet := parakeet::run
7
7
+
alias run-index := parakeet-index::run
8
8
+
9
9
+
@reset-db:
10
10
+
echo "Resetting and redoing Diesel migrations..."
11
11
+
diesel migration redo -a --locked-schema
12
12
+
13
13
+
@reset-redis:
14
14
+
echo "Resetting Redis lists..."
15
15
+
redis-cli DEL backfill_queue
16
16
+
redis-cli DEL backfill_processing
17
17
+
18
18
+
@reset-and-backfill *dids: reset-db reset-redis
19
19
+
for PARAMETER_VALUE in {{dids}}; do \
20
20
+
psql parakeet -c "INSERT INTO actors (did) VALUES ('$PARAMETER_VALUE');" > /dev/null 2>&1 \
21
21
+
redis-cli LPUSH backfill_queue "$PARAMETER_VALUE" > /dev/null 2>&1; \
22
22
+
done
23
23
+
export RUST_LOG=info,consumer=trace,consumer::firehose=info
24
24
+
just run-consumer --backfill
+11
parakeet-index/justfile
···
1
1
+
@release:
2
2
+
cargo build --release --features server
3
3
+
4
4
+
@lint:
5
5
+
cargo clippy
6
6
+
7
7
+
@run *params:
8
8
+
cargo run --features server -- {{params}}
9
9
+
10
10
+
@docker platform='linux/amd64' branch='main':
11
11
+
docker buildx build --platform {{platform}} -t registry.gitlab.com/parakeet-social/parakeet/parakeet-index:{{branch}} . -f parakeet-index/Dockerfile
-1
parakeet-index/run.sh
···
1
1
-
cargo run --features server
+11
parakeet/justfile
···
1
1
+
@release:
2
2
+
cargo build --release
3
3
+
4
4
+
@lint:
5
5
+
cargo clippy
6
6
+
7
7
+
@run *params:
8
8
+
cargo run -- {{params}}
9
9
+
10
10
+
@docker platform='linux/amd64' branch='main':
11
11
+
docker buildx build --platform {{platform}} -t registry.gitlab.com/parakeet-social/parakeet/parakeet:{{branch}} . -f parakeet/Dockerfile
-1
parakeet/run.sh
···
1
1
-
cargo run