Skip to content

Commit

Permalink
feat(*): update wadms to pull from ghcr
Browse files Browse the repository at this point in the history
Signed-off-by: Brooks Townsend <[email protected]>

feat(*): pull actors from ghcr
  • Loading branch information
brooksmtownsend committed Oct 31, 2023
1 parent 293c5b5 commit 1efedaf
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
10 changes: 5 additions & 5 deletions hello-world/hello-cosmonic.wadm.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is a full example of how to run the hello actor exposed with an HTTP server on Cosmonic.
# This is a full example of how to run the hello actor exposed with an HTTP server on Cosmonic.
# This example leverages WADM running: https://github.com/wasmCloud/wadm/tree/main/wadm.
#
# All components are started on Cosmonic. See other examples for different scenarios.
Expand All @@ -15,7 +15,7 @@ spec:
- name: hello
type: actor
properties:
image: cosmonic.azurecr.io/hello:0.1.0
image: ghcr.io/cosmonic/hello:0.1.0
traits:
- type: spreadscaler
properties:
Expand All @@ -26,13 +26,13 @@ spec:
- name: httpserver
properties:
contract: wasmcloud:httpserver
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4
image: cosmonic.azurecr.io/httpserver_wormhole:0.6.2
traits:
- properties:
replicas: 1
spread:
- name: oncosmonic
requirements:
cosmonic_managed: 'true'
cosmonic_managed: "true"
type: spreadscaler
type: capability
type: capability
14 changes: 7 additions & 7 deletions hello-world/hello-stargate.wadm.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This is a full example of how to run the hello actor exposed with an HTTP server on Cosmonic.
# This is a full example of how to run the hello actor exposed with an HTTP server on Cosmonic.
# This example leverages WADM running: https://github.com/wasmCloud/wadm/tree/main/wadm.
#
# This example starts a webserver on Cosmonic and runs the hello world on a remote host.
Expand All @@ -16,29 +16,29 @@ spec:
- name: hello
type: actor
properties:
image: cosmonic.azurecr.io/hello:0.1.0
image: ghcr.io/cosmonic/hello:0.1.0
traits:
- properties:
replicas: 1
spread:
- name: stargate
requirements:
# hostcore.os: macos
stargate: 'true'
# hostcore.os: macos
stargate: "true"
type: spreadscaler
- properties:
target: httpserver
type: linkdef
- name: httpserver
properties:
contract: wasmcloud:httpserver
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4
image: cosmonic.azurecr.io/httpserver_wormhole:0.6.2
traits:
- properties:
replicas: 1
spread:
- name: oncosmonic
requirements:
cosmonic_managed: 'true'
cosmonic_managed: "true"
type: spreadscaler
type: capability
type: capability
10 changes: 5 additions & 5 deletions kvcounter/kvcounter.wadm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ spec:
- name: kvcounter
type: actor
properties:
image: cosmonic.azurecr.io/kvcounter:0.1.0
image: ghcr.io/cosmonic/kvcounter:0.1.0
traits:
- type: spreadscaler
properties:
Expand All @@ -29,7 +29,7 @@ spec:
- name: httpserver
type: capability
properties:
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4
image: cosmonic.azurecr.io/httpserver_wormhole:0.6.2
contract: wasmcloud:httpserver
traits:
- type: spreadscaler
Expand All @@ -38,11 +38,11 @@ spec:
spread:
- name: wormholespread
requirements:
cosmonic_managed: 'true'
cosmonic_managed: "true"
- name: keyvalue
type: capability
properties:
image: cosmonic.azurecr.io/builtin_keyvalue:0.2.4
image: cosmonic.azurecr.io/builtin_keyvalue:0.2.5
contract: wasmcloud:keyvalue
traits:
- type: spreadscaler
Expand All @@ -51,4 +51,4 @@ spec:
spread:
- name: kvspread
requirements:
cosmonic_managed: 'true'
cosmonic_managed: "true"
22 changes: 11 additions & 11 deletions multi-channel-chat/multi-channel-chat.wadm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ spec:
- name: apigateway
type: actor
properties:
image: cosmonic.azurecr.io/mcc_apigateway:0.1.0
image: ghcr.io/cosmonic/mcc_apigateway:0.1.0
traits:
- type: spreadscaler
properties:
replicas: 1

- name: chatlog
type: actor
properties:
image: cosmonic.azurecr.io/mcc_chatlog:0.1.0
image: ghcr.io/cosmonic/mcc_chatlog:0.1.0
traits:
- type: spreadscaler
properties:
Expand All @@ -37,19 +37,19 @@ spec:
- name: httpchannel
type: actor
properties:
image: cosmonic.azurecr.io/mcc_httpchannel:0.1.0
image: ghcr.io/cosmonic/mcc_httpchannel:0.1.0
traits:
- type: spreadscaler
properties:
replicas: 1
- type: linkdef
properties:
target: httpserver

- name: natschannel
type: actor
properties:
image: cosmonic.azurecr.io/mcc_natschannel:0.1.0
image: ghcr.io/cosmonic/mcc_natschannel:0.1.0
traits:
- type: spreadscaler
properties:
Expand All @@ -62,35 +62,35 @@ spec:
type: capability
properties:
contract: wasmcloud:httpserver
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4
image: cosmonic.azurecr.io/httpserver_wormhole:0.6.2
traits:
- type: spreadscaler
properties:
replicas: 1
spread:
- name: wormholespread
requirements:
cosmonic_managed: 'true'
cosmonic_managed: "true"

- name: keyvalue
type: capability
properties:
contract: wasmcloud:keyvalue
image: cosmonic.azurecr.io/builtin_keyvalue:0.2.4
image: cosmonic.azurecr.io/builtin_keyvalue:0.2.5
traits:
- type: spreadscaler
properties:
replicas: 1
spread:
- name: kvspread
requirements:
cosmonic_managed: 'true'
cosmonic_managed: "true"

- name: messaging
type: capability
properties:
contract: wasmcloud:messaging
image: wasmcloud.azurecr.io/nats_messaging:0.17.2
image: wasmcloud.azurecr.io/nats_messaging:0.17.4
traits:
- type: spreadscaler
properties:
Expand Down
6 changes: 3 additions & 3 deletions xkcdgenerator/xkcd-generator-cosmonic.wadm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
# Source for this image: https://github.com/cosmonic/awesome-cosmonic/blob/main/xkcdgenerator/src/lib.rs
# With Cosmonic developers are responsible for their business logic, leveraging WebAssembly Components
#
image: cosmonic.azurecr.io/xkcdgenerator:0.1.0
image: ghcr.io/cosmonic/xkcdgenerator:0.2.0
traits:
- properties:
replicas: 1
Expand All @@ -75,7 +75,7 @@ spec:
- name: httpserver
properties:
contract: wasmcloud:httpserver
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4
image: cosmonic.azurecr.io/httpserver_wormhole:0.6.2
traits:
- properties:
replicas: 1
Expand All @@ -88,7 +88,7 @@ spec:
- name: httpclient
properties:
contract: wasmcloud:httpclient
image: wasmcloud.azurecr.io/httpclient:0.7.0
image: wasmcloud.azurecr.io/httpclient:0.8.0
traits:
- properties:
replicas: 1
Expand Down
10 changes: 5 additions & 5 deletions xkcdgenerator/xkcd-generator-stargate.wadm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ spec:
components:
- name: xkcd
properties:
image: cosmonic.azurecr.io/xkcdgenerator:0.1.0
image: ghcr.io/cosmonic/xkcdgenerator:0.1.0
traits:
- properties:
replicas: 1
spread:
- name: stargate
requirements:
# hostcore.os: macos
# hostcore.os: macos
stargate: "true"
type: spreadscaler
- properties:
Expand All @@ -92,7 +92,7 @@ spec:
# This webserver integrates with AWS on Cosmonic; you could use a local HTTP Web Server
# deployed on the remote host instead of, or in addition to, this one
#
image: cosmonic.azurecr.io/httpserver_wormhole:0.5.4
image: cosmonic.azurecr.io/httpserver_wormhole:0.6.2
traits:
- properties:
replicas: 1
Expand All @@ -105,14 +105,14 @@ spec:
- name: httpclient
properties:
contract: wasmcloud:httpclient
image: wasmcloud.azurecr.io/httpclient:0.7.0
image: wasmcloud.azurecr.io/httpclient:0.8.0
traits:
- properties:
replicas: 1
spread:
- name: stargate
requirements:
# hostcore.os: macos
# hostcore.os: macos
stargate: "true"
type: spreadscaler
type: capability

0 comments on commit 1efedaf

Please sign in to comment.