-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathjustfile
110 lines (82 loc) · 2.4 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# `--parallel 1` because apt has issues when pulling too many containers in parallel
docker_compose := "docker compose -f docker/dev-full/docker-compose.yml --progress=plain --parallel 1"
[group('rust')]
watch:
bacon
[group('run')]
[no-cd]
cli *ARGS:
cargo run -p rivet-cli -- {{ARGS}}
[group('dev')]
dev-compose *ARGS:
{{docker_compose}} {{ARGS}}
[group('dev')]
dev-up-all:
{{docker_compose}} up -d --build
[group('dev')]
dev-up-all-nobuild:
{{docker_compose}} up -d
[group('dev')]
dev-up CONTAINER:
{{docker_compose}} up -d --build {{CONTAINER}}
[group('dev')]
dev-up-nobuild CONTAINER:
{{docker_compose}} up -d {{CONTAINER}}
[group('dev')]
dev-logs CONTAINER:
{{docker_compose}} logs -f {{CONTAINER}}
[group('dev')]
dev-logs-client:
{{docker_compose}} exec rivet-client sh -c 'tail -f -n 100 /var/lib/rivet-client/logs/*'
[group('dev')]
dev-logs-runner:
{{docker_compose}} exec rivet-client sh -c 'tail -f -n 100 /var/lib/rivet-client/runner/logs/*'
[group('dev')]
dev-logs-server:
{{docker_compose}} logs -f rivet-server
[group('dev')]
dev-exec CONTAINER:
{{docker_compose}} exec -it {{CONTAINER}} /bin/bash
[group('dev')]
dev-cmd *ARGS:
{{docker_compose}} exec -it rivet-server rivet-server {{ARGS}}
[group('dev')]
dev-down:
{{docker_compose}} down
[group('dev')]
dev-nuke:
{{docker_compose}} down -v -t 0
[group('fern')]
fern-check:
./scripts/fern/check.sh
[group('fern')]
fern-gen:
./scripts/fern/gen.sh
[group('actor')]
actor-compile-bridge:
./scripts/sdk_actor/compile_bridge.ts
[group('actor')]
actor-check: actor-compile-bridge
cd sdks/actor && deno check --all client/**/*.ts runtime/**/*.ts client/**/*.ts manager/**/*.ts && biome check --write
[group('system')]
system-test REGION="":
cd examples/system-test && REGION={{REGION}} rivet deno --populate-env run -A ws_test.ts
[group('system')]
system-test-login:
cd examples/system-test && rivet login
alias gcs := graphite-create-submit
[group('graphite')]
graphite-create-submit MESSAGE REVIEWER:
gt create --all --message '{{MESSAGE}}'
gt submit --no-edit --publish --reviewers '{{REVIEWER}}'
alias gm := graphite-modify
[group('graphite')]
graphite-modify:
gt modify -a
gt submit
[group('github')]
release-latest VERSION:
gh workflow run .github/workflows/release.yaml -f version={{ VERSION }} -f latest=true
[group('github')]
release-nolatest VERSION:
gh workflow run .github/workflows/release.yaml -f version={{ VERSION }} -f latest=false