Skip to content

Commit

Permalink
install spin message trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
lee-orr committed May 15, 2023
1 parent afd48b3 commit 02cbc85
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- cargo-deny
- cargo-nextest
- honggfuzz
- spin-message-trigger
# NEXT
baseImage:
- debian:latest
Expand Down Expand Up @@ -74,6 +75,7 @@ jobs:
- cargo-deny
- cargo-nextest
- honggfuzz
- spin-message-trigger
# NEXT
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ Helix | ghcr.io/lee-orr/rusty-dev-containers/helix:0 | Installs the [Helix](http
| Fermyon Spin | ghcr.io/lee-orr/rusty-dev-containers/fermyon-spin:0 | Installs the [Spin CLI](https://developer.fermyon.com/spin/index), allowing building, testing and deploying for Spin-based WASM applications |
| Wasmcloud | ghcr.io/lee-orr/rusty-dev-containers/wasmcloud:0 | Installs Wash - the CLI for [Wasmcloud](https://wasmcloud.com/docs/intro) - a platform for building wasm-based cloud environments. |
| Cosmonic | ghcr.io/lee-orr/rusty-dev-containers/cosmonic:0 | Installs Cosmo - the CLI for [Cosmonic](cosmonic.com/) - a PaaS based on Wasmcloud. Note that it contains all the features provided by Wash, but with the capacity to automatically login to your cosmonic account & connect your dev environment to your constellation on their servers. |
| Spin Message Trigger | ghcr.io/lee-orr/rusty-dev-containers/spin-message-trigger:0 | Installs the [Spin Message Trigger](https://github.com/lee-orr/spin-message-trigger) plugin for Fermyon Spin. Requires the Fermyon Spin feature as well. |
24 changes: 24 additions & 0 deletions src/spin-message-trigger/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@

# Cargo Expand (cargo-expand)

A feature to install cargo expand

## Example Usage

```json
"features": {
"ghcr.io/lee-orr/rusty-dev-containers/cargo-expand:0": {}
}
```

## Options

| Options Id | Description | Type | Default Value |
|-----|-----|-----|-----|




---

_Note: This file was auto-generated from the [devcontainer-feature.json](https://github.com/lee-orr/rusty-dev-containers/blob/main/src/cargo-expand/devcontainer-feature.json). Add additional notes to a `NOTES.md`._
11 changes: 11 additions & 0 deletions src/spin-message-trigger/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "Spin Message Trigger",
"id": "spin-message-trigger",
"version": "0.0.2",
"description": "A feature to install spin message trigger",
"options": {
},
"installsAfter": [
"ghcr.io/lee-orr/rusty-dev-containers/fermyon-spin"
]
}
4 changes: 4 additions & 0 deletions src/spin-message-trigger/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -e

spin plugin install --url https://github.com/lee-orr/spin-message-trigger/releases/download/canary/trigger-message.json --yes
2 changes: 1 addition & 1 deletion test/fermyon-spin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
source dev-container-features-test-lib

# Definition specific tests
check "installed" cargo install --list | grep "spin"
#check "installed" spin plugins list | grep "message"

# Report result
reportResults
12 changes: 12 additions & 0 deletions test/spin-message-trigger/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

set -e

# Optional: Import test library
source dev-container-features-test-lib

# Definition specific tests
check "installed" cargo install --list | grep "spin-message-trigger"

# Report result
reportResults

0 comments on commit 02cbc85

Please sign in to comment.