Skip to content

Commit 2d2a052

Browse files
committed
[chapter 5] partially addressed feedback from PR2
Signed-off-by: danbugs <[email protected]>
1 parent 08a9bc6 commit 2d2a052

File tree

4 files changed

+23
-2
lines changed

4 files changed

+23
-2
lines changed

.github/workflows/publish-ghcr-images.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,24 @@ jobs:
3737
cache-from: type=gha
3838
cache-to: type=gha,mode=max
3939

40+
- name: Build and Push wasmtime_onnx
41+
uses: docker/build-push-action@v5
42+
with:
43+
context: chapter05/wasmtime_onnx
44+
file: chapter05/wasmtime_onnx/Dockerfile
45+
push: true
46+
tags: ghcr.io/${{ github.repository }}/wasmtime-onnx:latest
47+
platforms: linux/amd64,linux/arm64
48+
cache-from: type=gha
49+
cache-to: type=gha,mode=max
50+
51+
- name: Build and Push libsql_wasmudf
52+
uses: docker/build-push-action@v5
53+
with:
54+
context: chapter05/libsql_wasmudf
55+
file: chapter05/libsql_wasmudf/Dockerfile
56+
push: true
57+
tags: ghcr.io/${{ github.repository }}/libsql-wasmudf:latest
58+
platforms: linux/amd64,linux/arm64
59+
cache-from: type=gha
60+
cache-to: type=gha,mode=max

chapter05/wasi_nn_example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
## How to run?
44

55
- Build: `cargo component build --release`
6-
- Run: `docker run --rm -v <absolute-path-to-the-directory-containing-the-wasm-module>:/data danstaken/wasmtime_onnx:latest run -Snn --dir /fixture::fixture --dir /data::data /data/wasi_nn_example.wasm /data/cat.jpg`
6+
- Run: `docker run --rm -v $(pwd)/data:/data danstaken/wasmtime_onnx:latest run -Snn --dir /fixture::fixture --dir /data::data /data/wasi_nn_example.wasm /data/cat.jpg`

chapter05/wasm_udf_example/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- Create SQL file (see `data/create_wasm_udfs.sql` for reference). Leverage [`wasm_hex_dump`](https://github.com/danbugs/wasm_hex_dump) to generate the hex dump off a Wasm binary.
55
- Run with:
66
```shell
7-
docker run --rm -v <absolute-path-to-the-directory-containing-the-wasm-module>:/data danstaken/libsql:libsql-0.1.0-wasm-udf
7+
docker run --rm -v $(pwd)/data:/data -it danstaken/libsql:libsql-0.1.0-wasm-udf
88
```
99

1010
# Aside: An example with WAT
File renamed without changes.

0 commit comments

Comments
 (0)