Stream: git-wasmtime

Topic: wasmtime / issue #6524 When installed in a docker contain...


view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2023 at 13:46):

theagilecoder opened issue #6524:

I am not facing this issue with wasmer or wasmedge, only wasmtime.
I hava simple dockerfile which installs wasmtime and prints its version

# Use a base image with the desired Linux distribution
FROM ubuntu:latest

# Install necessary dependencies
RUN apt-get update && apt-get install -y curl

# Download and install Wasmer
RUN curl https://wasmtime.dev/install.sh -sSf | bash

# Add Wasmer binaries to the system PATH
ENV PATH="/root/.wasmtime/bin:${PATH}"

# Print the version of Wasmtime
RUN wasmtime --version

# Print Wasmer version
# CMD ["wasmtime", "--version"]

But it errors out saying wasmtime not found
/bin/sh: 1: wasmtime: not found

view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2023 at 13:52):

bjorn3 commented on issue #6524:

What is the value of $HOME when running the install command? It should install to $HOME/.wasmtime/bin if $WASMTIME_HOME is not set.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2023 at 14:07):

theagilecoder commented on issue #6524:

I tried ENV PATH="$HOME/.wasmtime/bin:${PATH}" but get the same error. $HOME should be root. Please ELI5

view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2023 at 14:31):

theagilecoder edited a comment on issue #6524:

I tried ENV PATH="$HOME/.wasmtime/bin:${PATH}" but get the same error. $HOME should be root. Please ELI5

Update : $HOME is root. Also, /root/.wasmtime folder is created but /root/.wasmtime/bin is empty. There is no wasmtime executable there.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 06 2023 at 16:14):

bjorn3 commented on issue #6524:

What messages does the install script print?

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2023 at 02:39):

theagilecoder commented on issue #6524:

here are the portion of docker logs related to wasmtime install

[3/4] RUN curl https://wasmtime.dev/install.sh -sSf | bash
#6 1.363   Installing latest version of Wasmtime (v9.0.3)
#6 1.363     Checking for existing Wasmtime installation
#6 1.371     Fetching archive for Linux, version v9.0.3
#6 1.376 https://github.com/bytecodealliance/wasmtime/releases/download/v9.0.3/wasmtime-v9.0.3-x86_64-linux.tar.xz
######################################################################## 100.0%
#6 3.098     Creating directory layout
#6 3.103   Extracting Wasmtime binaries
#6 3.106 tar (child): xz: Cannot exec: No such file or directory
#6 3.106 tar (child): Error is not recoverable: exiting now
#6 3.107 tar: Child returned status 2
#6 3.107 tar: Error is not recoverable: exiting now
#6 3.110 cp: cannot stat '/tmp/tmp.oihoTMRyxk/wasmtime-v9.0.3-x86_64-linux/wasmtime': No such file or directory
#6 3.112 cp: cannot stat '/tmp/tmp.oihoTMRyxk/wasmtime-v9.0.3-x86_64-linux/LICENSE': No such file or directory
#6 3.112 cp: cannot stat '/tmp/tmp.oihoTMRyxk/wasmtime-v9.0.3-x86_64-linux/README.md': No such file or directory
#6 DONE 3.4s

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2023 at 04:46):

bjorn3 commented on issue #6524:

Try installing xz.

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2023 at 14:20):

theagilecoder commented on issue #6524:

worked, thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Jun 07 2023 at 14:20):

theagilecoder closed issue #6524:

I am not facing this issue with wasmer or wasmedge, only wasmtime.
I hava simple dockerfile which installs wasmtime and prints its version

# Use a base image with the desired Linux distribution
FROM ubuntu:latest

# Install necessary dependencies
RUN apt-get update && apt-get install -y curl

# Download and install Wasmer
RUN curl https://wasmtime.dev/install.sh -sSf | bash

# Add Wasmer binaries to the system PATH
ENV PATH="/root/.wasmtime/bin:${PATH}"

# Print the version of Wasmtime
RUN wasmtime --version

# Print Wasmer version
# CMD ["wasmtime", "--version"]

But it errors out saying wasmtime not found
/bin/sh: 1: wasmtime: not found


Last updated: Dec 23 2024 at 13:07 UTC