-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1949 from itowlson/m2-template-all-the-things-let…
…s-go Update remaining templates to manifest v2
- Loading branch information
Showing
16 changed files
with
93 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
spin_manifest_version = "1" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
name = "{{project-name}}" | ||
trigger = { type = "http", base = "{{http-base}}" } | ||
version = "0.1.0" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
|
||
[[component]] | ||
id = "{{project-name | kebab_case}}" | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "{{http-path}}" | ||
component = "{{project-name | kebab_case}}" | ||
executor = { type = "wagi" } | ||
[component.build] | ||
|
||
[component.{{project-name | kebab_case}}] | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.{{project-name | kebab_case}}.build] | ||
command = "zig build-exe -O ReleaseSmall -target wasm32-wasi main.c -lc" | ||
watch = ["**/*.c"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
spin_manifest_version = "1" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
name = "{{project-name}}" | ||
trigger = { type = "http", base = "{{http-base}}" } | ||
version = "0.1.0" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
|
||
[[component]] | ||
id = "{{project-name | kebab_case}}" | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "{{http-path}}" | ||
component = "{{project-name | kebab_case}}" | ||
executor = { type = "wagi" } | ||
[component.build] | ||
|
||
[component.{{project-name | kebab_case}}] | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.{{project-name | kebab_case}}.build] | ||
command = "grain compile --release -o main.wasm main.gr" | ||
watch = ["**/*.gr"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
spin_manifest_version = "1" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
name = "{{project-name}}" | ||
trigger = { type = "http", base = "{{http-base}}" } | ||
version = "0.1.0" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
|
||
[[component]] | ||
id = "{{project-name | kebab_case}}" | ||
[[trigger.http]] | ||
route = "{{http-path}}" | ||
component = "{{project-name | kebab_case}}" | ||
executor = { type = "wagi"} | ||
|
||
[component.{{project-name | kebab_case}}] | ||
files = [ { source = "./src", destination = "/" } ] | ||
allowed_http_hosts = [] | ||
[component.source] | ||
[component.{{project-name | kebab_case}}.source] | ||
url = "https://github.com/vmware-labs/webassembly-language-runtimes/releases/download/php%2F7.4.32%2B20221124-2159d1c/php-cgi-7.4.32.speed-optimized.wasm" | ||
digest = "sha256:511720698dee56134ed8a08a87131d33c3ea8a64b6726cd6710d624bca4ceb6c" | ||
[component.trigger] | ||
executor = { type = "wagi"} | ||
route = "{{http-path}}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
spin_manifest_version = "1" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
name = "{{project-name}}" | ||
trigger = { type = "http", base = "{{http-base}}" } | ||
version = "0.1.0" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
|
||
[[component]] | ||
id = "{{project-name | kebab_case}}" | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "{{http-path}}" | ||
component = "{{project-name | kebab_case}}" | ||
executor = { type = "wagi" } | ||
[component.build] | ||
|
||
[component.{{project-name | kebab_case}}] | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.{{project-name | kebab_case}}.build] | ||
command = "swiftc -target wasm32-unknown-wasi main.swift -o main.wasm" | ||
watch = ["**/*.swift"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
spin_manifest_version = "1" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
name = "{{project-name}}" | ||
trigger = { type = "http", base = "{{http-base}}" } | ||
version = "0.1.0" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
|
||
[[component]] | ||
id = "{{project-name | kebab_case}}" | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "{{http-path}}" | ||
component = "{{project-name | kebab_case}}" | ||
executor = { type = "wagi" } | ||
[component.build] | ||
|
||
[component.{{project-name | kebab_case}}] | ||
source = "main.wasm" | ||
allowed_http_hosts = [] | ||
[component.{{project-name | kebab_case}}.build] | ||
command = "zig build-exe -O ReleaseSmall -target wasm32-wasi src/main.zig" | ||
watch = ["src/**/*.zig"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
spin_manifest_version = "1" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
name = "{{project-name}}" | ||
trigger = { type = "http", base = "{{http-base}}" } | ||
version = "0.1.0" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
|
||
[[trigger.http]] | ||
route = "{{ redirect-from }}" | ||
component = "{{project-name | kebab_case}}" | ||
|
||
[[component]] | ||
[component.{{project-name | kebab_case}}] | ||
source = { url = "https://github.com/fermyon/spin-redirect/releases/download/v0.1.0/redirect.wasm", digest = "sha256:8bee959843f28fef2a02164f5840477db81d350877e1c22cb524f41363468e52" } | ||
id = "{{ project-name | kebab_case }}" | ||
environment = { DESTINATION = "{{ redirect-to }}" } | ||
[component.trigger] | ||
route = "{{ redirect-from }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[[component]] | ||
[[trigger.http]] | ||
route = "{{ redirect-from }}" | ||
component = "{{project-name | kebab_case}}" | ||
|
||
[component.{{project-name | kebab_case}}] | ||
source = { url = "https://github.com/fermyon/spin-redirect/releases/download/v0.1.0/redirect.wasm", digest = "sha256:8bee959843f28fef2a02164f5840477db81d350877e1c22cb524f41363468e52" } | ||
id = "{{ project-name | kebab_case }}" | ||
environment = { DESTINATION = "{{ redirect-to }}" } | ||
[component.trigger] | ||
route = "{{ redirect-from }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
spin_manifest_version = "1" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
spin_manifest_version = 2 | ||
|
||
[application] | ||
name = "{{project-name}}" | ||
trigger = { type = "http", base = "{{http-base}}" } | ||
version = "0.1.0" | ||
authors = ["{{authors}}"] | ||
description = "{{project-description}}" | ||
|
||
[[trigger.http]] | ||
route = "{{ http-path | http_wildcard }}" | ||
component = "{{project-name | kebab_case}}" | ||
|
||
[[component]] | ||
[component.{{project-name | kebab_case}}] | ||
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.1.0/spin_static_fs.wasm", digest = "sha256:96c76d9af86420b39eb6cd7be5550e3cb5d4cc4de572ce0fd1f6a29471536cb4" } | ||
id = "{{ project-name }}" | ||
files = [{ source = "{{ files-path }}", destination = "/" }] | ||
[component.trigger] | ||
route = "{{ http-path | http_wildcard }}" |
11 changes: 6 additions & 5 deletions
11
templates/static-fileserver/metadata/snippets/component.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
[[component]] | ||
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.1.0/spin_static_fs.wasm", digest = "sha256:96c76d9af86420b39eb6cd7be5550e3cb5d4cc4de572ce0fd1f6a29471536cb4" } | ||
id = "{{ project-name }}" | ||
files = [ { source = "{{ files-path }}", destination = "/" } ] | ||
[component.trigger] | ||
[[trigger.http]] | ||
route = "{{ http-path | http_wildcard }}" | ||
component = "{{project-name | kebab_case}}" | ||
|
||
[component.{{project-name | kebab_case}}] | ||
source = { url = "https://github.com/fermyon/spin-fileserver/releases/download/v0.1.0/spin_static_fs.wasm", digest = "sha256:96c76d9af86420b39eb6cd7be5550e3cb5d4cc4de572ce0fd1f6a29471536cb4" } | ||
files = [{ source = "{{ files-path }}", destination = "/" }] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters