-
Notifications
You must be signed in to change notification settings - Fork 38
/
runfile.toml
76 lines (62 loc) · 2.15 KB
/
runfile.toml
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
[start-frontend]
description = "starts the frontend in dev mode"
path = "frontend"
cmd = "yarn dev"
[gen-client]
description = "generates typescript types and build the ts client"
cmd = """
node ./client/core/ts/generate_types.mjs && \
cd ./client/core/ts && yarn build && \
cp -r dist/. ../../../frontend/public/client/."""
[link-client]
description = "yarn links the ts client to the frontend"
after = "gen-client"
cmd = """
cd ./client/core/ts && yarn link && \
cd ../../../frontend && yarn link komodo_client && yarn
"""
[build-frontend]
description = "generates fresh ts client and builds the frontend"
path = "frontend"
cmd = "yarn build"
after = "gen-client"
[publish-typescript]
path = "client/core/ts"
cmd = "npm publish"
[test-compose]
description = "deploys test.compose.yaml"
cmd = """
docker compose -p komodo-dev -f test.compose.yaml down --remove-orphans && \
docker compose -p komodo-dev -f test.compose.yaml up -d"""
[test-compose-exposed]
description = "deploys test.compose.yaml with exposed port and non-ssl periphery"
cmd = """
docker compose -p komodo-dev -f test.compose.yaml -f expose.compose.yaml down --remove-orphans && \
docker compose -p komodo-dev -f test.compose.yaml -f expose.compose.yaml up -d"""
[test-compose-build]
description = "builds and deploys test.compose.yaml"
cmd = """
docker compose -p komodo-dev -f test.compose.yaml build"""
[test-core]
description = "runs core --release pointing to .komodo/core.config.toml"
cmd = "KOMODO_CONFIG_PATH=.komodo/core.config.toml cargo run -p komodo_core --release"
[test-periphery]
description = "runs periphery --release pointing to test.periphery.config.toml"
cmd = "PERIPHERY_CONFIG_PATH=test.periphery.config.toml cargo run -p komodo_periphery --release"
[create-multiarch-builder]
cmd = "docker buildx create --name builder --use --bootstrap"
[build-multiarch-periphery]
cmd = """
docker build \
--platform linux/amd64,linux/arm64 \
-f bin/periphery/cross-compile.Dockerfile \
.
"""
[docsite-start]
path = "docsite"
cmd = "yarn start"
[docsite-deploy]
path = "docsite"
cmd = "yarn deploy"
# [rustdoc-server]
# cmd = "cargo watch -s 'cargo doc --no-deps -p komodo_client' & http --quiet target/doc"