Skip to content

Commit

Permalink
add testcase to verify multi-trigger app
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
  • Loading branch information
rajatjindal committed Apr 2, 2024
1 parent 3549a3e commit ef00656
Show file tree
Hide file tree
Showing 13 changed files with 1,357 additions and 4 deletions.
15 changes: 15 additions & 0 deletions images/spin-multi-trigger-app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM --platform=${BUILDPLATFORM} rust:1.73 AS build
WORKDIR /opt/build
COPY . .
RUN rustup target add wasm32-wasi

WORKDIR /opt/build/spin-http-trigger
RUN cargo build --target wasm32-wasi --release

WORKDIR /opt/build/spin-redis-trigger
RUN cargo build --target wasm32-wasi --release

FROM scratch
COPY --from=build /opt/build/spin-http-trigger/target/wasm32-wasi/release/spin_http_trigger.wasm .
COPY --from=build /opt/build/spin-redis-trigger/target/wasm32-wasi/release/spin_redis_trigger.wasm .
COPY --from=build /opt/build/spin.toml .
2 changes: 2 additions & 0 deletions images/spin-multi-trigger-app/spin-http-trigger/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/
.spin/
Loading

0 comments on commit ef00656

Please sign in to comment.