Skip to content

Commit

Permalink
delete command in workload.yaml and make lunatic executable
Browse files Browse the repository at this point in the history
Signed-off-by: jiaxiao zhou <jiazho@microsoft.com>
  • Loading branch information
Mossaka committed Aug 18, 2023
1 parent 8c1bfbf commit 70b606c
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion images/lunatic-spawn/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ RUN rustup target add wasm32-wasi
RUN cargo build --release --target wasm32-wasi

FROM scratch
COPY --link --from=build /build/target/wasm32-wasi/release/lunatic-spawn.wasm /
COPY --link --chmod=0755 --from=build /build/target/wasm32-wasi/release/lunatic-spawn.wasm /
ENTRYPOINT [ "./lunatic-spawn.wasm" ]
2 changes: 1 addition & 1 deletion images/lunatic-submillisecond/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ RUN rustup target add wasm32-wasi
RUN cargo build --release --target wasm32-wasi

FROM scratch
COPY --link --from=build /build/target/wasm32-wasi/release/lunatic-submillisecond.wasm /
COPY --link --chmod=0755 --from=build /build/target/wasm32-wasi/release/lunatic-submillisecond.wasm /
ENTRYPOINT [ "./lunatic-submillisecond.wasm" ]
2 changes: 1 addition & 1 deletion images/lunatic/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ RUN rustup target add wasm32-wasi
RUN cargo build --release --target wasm32-wasi

FROM scratch
COPY --link --from=build /build/target/wasm32-wasi/release/wasi-hello-world.wasm /
COPY --link --chmod=0755 --from=build /build/target/wasm32-wasi/release/wasi-hello-world.wasm /
ENTRYPOINT [ "./wasi-hello-world.wasm" ]
1 change: 0 additions & 1 deletion tests/workloads/workload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,6 @@ spec:
- name: testwasm
image: docker.io/library/lunatic-hello-world:latest
imagePullPolicy: Never # prevent k8s from pulling the image from a registry
command: ["/"]
resources: # limit the resources to 128Mi of memory and 100m of CPU
limits:
cpu: 100m
Expand Down

0 comments on commit 70b606c

Please sign in to comment.