Skip to content

Commit ea556ed

Browse files
committed
[pr3] use wasmedge instead of wasmtime for docker
Signed-off-by: danbugs <danilochiarlone@gmail.com>
1 parent 9586812 commit ea556ed

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

chapter07/hello-wasm-container/docker-enable-wasm.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ echo "[LOG] Docker restarted."
3434
# Step 3: Download the appropriate runwasi release
3535
ARCH=$(uname -m)
3636
RELEASE_VERSION="v0.5.0"
37-
BASE_URL="https://github.com/containerd/runwasi/releases/download/containerd-shim-wasmtime%2F${RELEASE_VERSION}"
37+
BASE_URL="https://github.com/containerd/runwasi/releases/download/containerd-shim-wasmedge%2F${RELEASE_VERSION}"
3838

3939
case "$ARCH" in
4040
x86_64)
41-
FILENAME="containerd-shim-wasmtime-x86_64-linux-musl.tar.gz"
41+
FILENAME="containerd-shim-wasmedge-x86_64-linux-musl.tar.gz"
4242
;;
4343
aarch64)
44-
FILENAME="containerd-shim-wasmtime-aarch64-linux-musl.tar.gz"
44+
FILENAME="containerd-shim-wasmedge-aarch64-linux-musl.tar.gz"
4545
;;
4646
*)
4747
echo "[ERROR] Unsupported architecture: $ARCH"
@@ -57,13 +57,13 @@ echo "[LOG] Extracting $FILENAME..."
5757
tar -xzf "$FILENAME"
5858

5959
# Step 4: Install the shim binary
60-
echo "[LOG] Installing containerd-shim-wasmtime-v1 to /usr/local/bin..."
61-
chmod +x containerd-shim-wasmtime-v1
62-
sudo install containerd-shim-wasmtime-v1 /usr/local/bin/
60+
echo "[LOG] Installing containerd-shim-wasmedge-v1 to /usr/local/bin..."
61+
chmod +x containerd-shim-wasmedge-v1
62+
sudo install containerd-shim-wasmedge-v1 /usr/local/bin/
6363

6464
# Step 5: Cleanup
6565
echo "[LOG] Cleaning up downloaded files..."
66-
rm -rf containerd-shim-wasmtime-*
66+
rm -rf containerd-shim-wasmedge-*
6767

6868
echo "[LOG] Shim installed and system cleaned up successfully."
6969
echo "[LOG] Setup complete."

0 commit comments

Comments
 (0)