-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add testcase to verify multi-trigger app
Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
- Loading branch information
1 parent
3549a3e
commit ef00656
Showing
13 changed files
with
1,357 additions
and
4 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 |
---|---|---|
@@ -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 . |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
target/ | ||
.spin/ |
Oops, something went wrong.