Fix random stuff

This commit is contained in:
Lorenzo Venerandi
2025-01-29 23:37:54 +01:00
parent 594badcd71
commit 5668295be3
5 changed files with 23 additions and 4 deletions

View File

@@ -2,6 +2,7 @@ import os
import src.code_generator.generator as code_generator
import src.wasm_builder.build as wasm_builder
import src.component_deploy.deploy as deployer
import time
class Pelato:
def __init__(self):
@@ -33,5 +34,9 @@ class Pelato:
print('-------------------------------------------')
self.generate(project_dir)
time.sleep(1)
self.build(project_dir)
time.sleep(1)
self.deploy(project_dir)

View File

@@ -2,13 +2,20 @@ apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: {{ component_name }}
annotations:
description: 'Data stream processing using NATS topic in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)'
wasmcloud.dev/authors: Lorenzo Venerandi
wasmcloud.dev/source-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/wadm.yaml
wasmcloud.dev/readme-md-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/README.md
wasmcloud.dev/homepage: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git
wasmcloud.dev/categories: |
stream-processing,nats-client,tinygo,golang
spec:
components:
- name: {{ component_name }}
type: component
properties:
image: {{ registry_url }}/{{ component_name }}:{{ version }}
id: stream
traits:
- type: link
properties:

View File

@@ -2,13 +2,20 @@ apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
name: {{ component_name }}
annotations:
description: 'Data stream processing using NATS topic in Golang (TinyGo), using the WebAssembly Component Model and WebAssembly Interfaces Types (WIT)'
wasmcloud.dev/authors: Lorenzo Venerandi
wasmcloud.dev/source-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/wadm.yaml
wasmcloud.dev/readme-md-url: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git/README.md
wasmcloud.dev/homepage: https://gitea.rebus.ninja/lore/wasm-nats-stream-client.git
wasmcloud.dev/categories: |
stream-processing,nats-client,tinygo,golang
spec:
components:
- name: {{ component_name }}
type: component
properties:
image: {{ registry_url }}/{{ component_name }}:{{ version }}
id: producer
traits:
- type: spreadscaler
properties: