Skip to content

Commit 45470d0

Browse files
committed
[fix] change hello_world_host dockerfile path in gh actions
Signed-off-by: danbugs <[email protected]>
1 parent d7b3a4e commit 45470d0

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

chapter02/hello_world/README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,19 @@
33
## How to build the guest?
44

55
```bash
6+
# from the `hello_world_guest/` directory
67
cargo build --target wasm32-unknown-unknown --release
78
```
89

910
## How to run the host?
1011

1112
```bash
12-
docker run --rm -v <absolute-path-to-the-directory-containing-the-wasm-module>:/data danstaken/hello_world_host:latest /data/hello_world_guest.wasm 'Dan'
13-
# for me, it is: docker run --rm -v C:\Users\danil\source\repos\serverside-wasm-book-code\chapter02\hello_world\hello_world_guest:/data danstaken/hello_world_host:latest /data/hello_world_guest.wasm 'Dan'
13+
docker run --rm -v "$(pwd):/data" danstaken/hello_world_host:latest /data/hello_world_guest.wasm 'Dan'
1414
```
1515

1616
You can also run locally, with:
1717

1818
```bash
19-
# from `hello_world_host` directory
19+
# from the `hello_world_host/` directory
2020
cargo run -- ../hello_world_guest/hello_world_guest.wasm 'Dan'
21-
```
22-
23-
## Toolchain versions
24-
25-
```bash
26-
cargo 1.79.0 (ffa9cf99a 2024-06-03)
27-
Docker version 24.0.7, build afdd53b
2821
```

0 commit comments

Comments
 (0)