-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathspin.toml
More file actions
49 lines (39 loc) · 1.36 KB
/
spin.toml
File metadata and controls
49 lines (39 loc) · 1.36 KB
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
spin_manifest_version = 2
[application]
name = "aggregation-pattern"
version = "0.1.0"
authors = ["Fermyon Engineering <engineering@fermyon.com>"]
description = "Sample implementation of the Aggregation Pattern"
[[trigger.http]]
route = "/aggregates/..."
component = "aggregates-service"
[component.aggregates-service]
source = "aggregates-service/target/wasm32-wasi/release/aggregates_service.wasm"
allowed_outbound_hosts = [
"http://customers-service.spin.internal",
"http://incidents-service.spin.internal",
]
[component.aggregates-service.build]
command = "cargo build --target wasm32-wasip1 --release"
workdir = "aggregates-service"
watch = ["src/**/*.rs", "Cargo.toml"]
[[trigger.http]]
route = "/customers/..."
component = "customers-service"
[component.customers-service]
source = "customers-service/target/customers-service.wasm"
sqlite_databases = ["default"]
[component.customers-service.build]
command = "npm install && npm run build"
workdir = "customers-service"
[[trigger.http]]
route = "/incidents/..."
component = "incidents-service"
[component.incidents-service]
source = "incidents-service/main.wasm"
sqlite_databases = ["default"]
allowed_outbound_hosts = []
[component.incidents-service.build]
command = "tinygo build -target=wasip1 -gc=leaking -buildmode=c-shared -no-debug -o main.wasm ."
workdir = "incidents-service"
watch = ["**/*.go", "go.mod"]