Skip to content

Commit

Permalink
add entrypoint and remove commands in workload.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: jiaxiao zhou <[email protected]>
  • Loading branch information
Mossaka committed Aug 18, 2023
1 parent 7f2c09b commit 551b637
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 3 additions & 2 deletions images/slight/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ RUN rustup target add wasm32-wasi && cargo build --target wasm32-wasi --release
RUN apt-get update && apt-get install ca-certificates -y

FROM scratch
COPY --from=build /opt/build/target/wasm32-wasi/release/http_server_lib.wasm ./app.wasm
COPY --from=build --chmod=0755 /opt/build/target/wasm32-wasi/release/http_server_lib.wasm ./app.wasm
COPY --from=build /opt/build/slightfile.toml .
COPY --from=build /etc/ssl /etc/ssl
COPY --from=build /etc/ssl /etc/ssl
ENTRYPOINT ["/app.wasm"]
1 change: 0 additions & 1 deletion tests/workloads/workload.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ spec:
- name: testwasm
image: docker.io/library/slight-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 551b637

Please sign in to comment.