Skip to content

Commit

Permalink
deploy: 8faff1c
Browse files Browse the repository at this point in the history
  • Loading branch information
utam0k committed Oct 10, 2023
1 parent 3c80df1 commit 0c7399b
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
16 changes: 6 additions & 10 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -610,27 +610,23 @@ <h3 id="implemented-subcommands"><a class="header" href="#implemented-subcommand
<li>Build a container image with the WebAssembly module</li>
<li>Run the container with youki</li>
</ol>
<h2 id="build-youki-with-wasm-wasmedge-or-wasm-wasmer-feature-flag-enabled"><a class="header" href="#build-youki-with-wasm-wasmedge-or-wasm-wasmer-feature-flag-enabled">Build youki with <code>wasm-wasmedge</code> or <code>wasm-wasmer</code> feature flag enabled</a></h2>
<h2 id="build-youki-with-wasm-wasmedge-wasm-wasmer-or-wasm-wasmtime-feature-flag-enabled"><a class="header" href="#build-youki-with-wasm-wasmedge-wasm-wasmer-or-wasm-wasmtime-feature-flag-enabled">Build youki with <code>wasm-wasmedge</code>, <code>wasm-wasmer</code>, or <code>wasm-wasmtime</code> feature flag enabled</a></h2>
<ul>
<li>
<p>Run <code>build.sh</code> with <code>-f wasm-wasmedge</code> option.</p>
<pre><code class="language-bash">./scripts/build.sh -o . -r -f wasm-wasmedge
</code></pre>
<blockquote>
<p>The <code>wasm-wasmedge</code> feature will install WasmEdge Runtime library in the <code>$HOME/.wasmedge</code> directory.
To make the library available in your system, run the following command:</p>
<pre><code class="language-bash">export LD_LIBRARY_PATH=$HOME/.wasmedge/lib
</code></pre>
<p>or</p>
<pre><code class="language-bash">source $HOME/.wasmedge/env
</code></pre>
</blockquote>
</li>
<li>
<p>Run <code>build.sh</code> with <code>-f wasm-wasmer</code> option.</p>
<pre><code class="language-bash">./scripts/build.sh -o . -r -f wasm-wasmer
</code></pre>
</li>
<li>
<p>Run <code>build.sh</code> with <code>-f wasm-wasmtime</code> option.</p>
<pre><code class="language-bash">./scripts/build.sh -o . -r -f wasm-wasmtime
</code></pre>
</li>
</ul>
<h2 id="build-a-container-image-with-the-webassembly-module"><a class="header" href="#build-a-container-image-with-the-webassembly-module">Build a container image with the WebAssembly module</a></h2>
<p>If you want to run a webassembly module with youki, your config.json has to include either <strong>runc.oci.handler</strong> or <strong>module.wasm.image/variant=compat&quot;</strong>.</p>
Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

16 changes: 6 additions & 10 deletions user/webassembly.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,27 +178,23 @@ <h1 id="webassembly"><a class="header" href="#webassembly">Webassembly</a></h1>
<li>Build a container image with the WebAssembly module</li>
<li>Run the container with youki</li>
</ol>
<h2 id="build-youki-with-wasm-wasmedge-or-wasm-wasmer-feature-flag-enabled"><a class="header" href="#build-youki-with-wasm-wasmedge-or-wasm-wasmer-feature-flag-enabled">Build youki with <code>wasm-wasmedge</code> or <code>wasm-wasmer</code> feature flag enabled</a></h2>
<h2 id="build-youki-with-wasm-wasmedge-wasm-wasmer-or-wasm-wasmtime-feature-flag-enabled"><a class="header" href="#build-youki-with-wasm-wasmedge-wasm-wasmer-or-wasm-wasmtime-feature-flag-enabled">Build youki with <code>wasm-wasmedge</code>, <code>wasm-wasmer</code>, or <code>wasm-wasmtime</code> feature flag enabled</a></h2>
<ul>
<li>
<p>Run <code>build.sh</code> with <code>-f wasm-wasmedge</code> option.</p>
<pre><code class="language-bash">./scripts/build.sh -o . -r -f wasm-wasmedge
</code></pre>
<blockquote>
<p>The <code>wasm-wasmedge</code> feature will install WasmEdge Runtime library in the <code>$HOME/.wasmedge</code> directory.
To make the library available in your system, run the following command:</p>
<pre><code class="language-bash">export LD_LIBRARY_PATH=$HOME/.wasmedge/lib
</code></pre>
<p>or</p>
<pre><code class="language-bash">source $HOME/.wasmedge/env
</code></pre>
</blockquote>
</li>
<li>
<p>Run <code>build.sh</code> with <code>-f wasm-wasmer</code> option.</p>
<pre><code class="language-bash">./scripts/build.sh -o . -r -f wasm-wasmer
</code></pre>
</li>
<li>
<p>Run <code>build.sh</code> with <code>-f wasm-wasmtime</code> option.</p>
<pre><code class="language-bash">./scripts/build.sh -o . -r -f wasm-wasmtime
</code></pre>
</li>
</ul>
<h2 id="build-a-container-image-with-the-webassembly-module"><a class="header" href="#build-a-container-image-with-the-webassembly-module">Build a container image with the WebAssembly module</a></h2>
<p>If you want to run a webassembly module with youki, your config.json has to include either <strong>runc.oci.handler</strong> or <strong>module.wasm.image/variant=compat&quot;</strong>.</p>
Expand Down

0 comments on commit 0c7399b

Please sign in to comment.