Skip to content

Commit 39da5a2

Browse files
committed
Environment definitions starter pack
Signed-off-by: itowlson <[email protected]>
1 parent 2195da8 commit 39da5a2

File tree

4 files changed

+35
-0
lines changed

4 files changed

+35
-0
lines changed

target-envs/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Spin target environments
2+
3+
This folder contains target environment definitions for Spin. Each target
4+
environment is a TOML file which maps triggers to the WIT worlds supported by
5+
those triggers. When pushed to an OCI registry, these can be referenced
6+
in the Spin manifest `application.targets` array.
7+
8+
Pushed environment definitions should not include the `.toml` extension
9+
and should be versioned using OCI versioning, e.g. `spin-up:3.4`
10+
We avoid using this convention for the source files because 1. syntax
11+
highlighting and 2. Windows filenames.
12+
13+
Versions should include _minor version only_ because WITs should not
14+
change in patch releases.

target-envs/spin-up.3.2.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
default = { worlds = ["spin:up/[email protected]"] }
2+
3+
[triggers]
4+
5+
[triggers.http]
6+
worlds = ["spin:up/[email protected]"]
7+
capabilities = ["local_service_chaining"]

target-envs/spin-up.3.4.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
default = { worlds = ["spin:up/[email protected]"] }
2+
3+
[triggers]
4+
5+
[triggers.http]
6+
worlds = ["spin:up/[email protected]"]
7+
capabilities = ["local_service_chaining"]

target-envs/spin-up.3.5.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
default = { worlds = ["spin:up/[email protected]"] }
2+
3+
[triggers]
4+
5+
[triggers.http]
6+
worlds = ["spin:up/[email protected]", "spin:up/[email protected]"]
7+
capabilities = ["local_service_chaining"]

0 commit comments

Comments
 (0)